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 2/28/05 1:46 PM, "Jeffrey Berman" <email@hidden> wrote:

> 
> SetFile -d "02/27/2005 00:01" testfile
> 
> sets the creation time of the file "testfile" to 12:01 AM.

That's correct. 00:01 = 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*.

PM and AM are there for your convenience. In 24-hour time, 12:00 to 12:59 is
always PM, and always shall be PM, so that's correct. Since SetFile allows
you to use AM and PM to make 1:01 mean the same thing as 13:01, that's a
bug, not a feature, and I'll probably be reporting it as such. However, at
least when you use 13:01, even with AM, that's read as PM, as is correct.

Mixing 12 and 24 hour time at the CLI level is a bad thing, especially
since, with 24-hour time, there's no ambiguity allowed.

-- 
"Oh, to be young again. To be sure you know everything, and yet be as
completely stupid as a poorly educated lump of marble.

Yeah. All the people our age spend countless millions to find a way to get
back to being that when a well-placed baseball bat to the skull is so
cheap."

Fred and Faye Macintire, "Something Positive


 _______________________________________________
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.