Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: creation date property of item is r/o !



On Feb 28, 2005, at 11:46 AM, Jeffrey Berman wrote:

You're correct that in 24-hour time, it would be "00" hours for midnight.
But 24-hour clock notation does not use "AM/PM". So a time of "00:01" in
24-hour time should equal the time of "12:01 AM" using 12-hour notation.
However, when using the SetFile command, this does not seem to be the case.


For example:

SetFile -d "02/27/2005 00:01" testfile

sets the creation time of the file "testfile" to 12:01 AM.

However, the command:

SetFile -d "02/27/2005 12:01 AM" testfile

sets the creation time of the file "testfile" to 12:01 *PM*.

The hour value with AM/PM notation seems to work fine in SetFile for all
hours except midnight.

The AM/PM/mindnight problems with SetFile were fixed in Xcode 1.5.

Chris

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden
References: 
 >Re: creation date property of item is r/o ! (From: Jeffrey Berman <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.