Results 1 to 4 of 4

Thread: How to set the file's date and time.

  1. #1
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default How to set the file's date and time.

    hi

    How to set the file time...if anybody knows help me...

  2. #2
    Join Date
    May 2006
    Location
    Bangalore,India
    Posts
    235
    Thanks
    7
    Thanked 25 Times in 24 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Windows

    Default Re: How to set the file's date and time.

    you can use SetFileTime() API.
    see this:
    http://msdn2.microsoft.com/en-us/library/ms724933.aspx

  3. #3
    Join Date
    Mar 2006
    Location
    Mountain View, California
    Posts
    489
    Thanks
    3
    Thanked 74 Times in 54 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to set the file's date and time.

    His user info says that he users MacOS, so I don't think a Windows API will help him. :-)

    For Unix and Mac, you may want to look at utime(). Bring up a terminal window and type: man utime

  4. #4
    Join Date
    May 2007
    Posts
    110
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X

    Default Re: How to set the file's date and time.

    Quote Originally Posted by Brandybuck View Post
    His user info says that he users MacOS, so I don't think a Windows API will help him. :-)

    For Unix and Mac, you may want to look at utime(). Bring up a terminal window and type: man utime
    when i use UTime it change only Access time and Modification Time ....But we cannot change the created date and time....UTime function second argument struct change only Access and Modified date.....But I want to change the Created date.....

Similar Threads

  1. time and date issues
    By boog07005 in forum Newbie
    Replies: 5
    Last Post: 20th August 2012, 16:15
  2. chage date and time
    By behnia_k in forum General Programming
    Replies: 4
    Last Post: 18th July 2007, 13:48
  3. QDateTime GMT add sec. or - sec. from locale time....
    By patrik08 in forum Qt Programming
    Replies: 2
    Last Post: 20th February 2007, 17:39

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.