Results 1 to 2 of 2

Thread: Convert ColeDateTime from VS6.0

  1. #1
    Join Date
    Apr 2017
    Posts
    55
    Thanks
    8
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Convert ColeDateTime from VS6.0

    I am porting a project from Microsoft Visual Studio 6.0 c++ to Linux c++ in the Qt environment. Qt4.8.5

    I am having trouble with these two particular lines of code from that project.
    Qt Code:
    1. COleDateTime old_time(1900,1,1,0,0,1);
    2. DATE old = old_time;
    To copy to clipboard, switch view to plain text mode 


    In Qt what are the equivalent syntax to accomplish this same thing. Nothing jumps out at me in any of the documentation.
    would old_time above become an instance of the time_t struct, with the arguments populating members of that struct??

    Any details would be appreciated.

    Thank You
    emp

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Convert ColeDateTime from VS6.0

    Qt Code:
    1. QDateTime old_time(QDate(1900,1,1),QTime(0,0,1));
    2. QDate old = old_time.date();
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. How to Convert FLV to MOV on Mac
    By BadBB in forum General Discussion
    Replies: 2
    Last Post: 3rd November 2017, 11:12
  2. Convert Pdf to Txt
    By henriquez0 in forum Qt Programming
    Replies: 3
    Last Post: 21st December 2015, 19:54
  3. how to convert qml to exe?
    By hashb in forum Qt Programming
    Replies: 19
    Last Post: 7th November 2010, 00:32
  4. How to convert XML+XSL to PDF in QT4.5
    By richardander in forum Qt Programming
    Replies: 1
    Last Post: 20th March 2009, 23:14

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.