Re: Newbie Date questions
Re: Newbie Date questions
- Subject: Re: Newbie Date questions
- From: Doug McNutt <email@hidden>
- Date: Mon, 1 Mar 2010 13:35:35 -0700
At 12:09 -0800 3/1/10, Joe wrote:
>Try this for the date.
>
>set x to current date
>set y to year of x
>set d to day of x
>set m to month of x as number
>set sd to m & "/" & d & "/" & y as string
>
>Finder has an update command. Have never used it.
>
tell application "Finder" to update every file in front window
which is typed from memory on this OS 9 machine I use for email. Finder on OS X can be very slow to update its display when an underlying file is changed by another application.
But updating a Finder window will do nothing to the information stored in the file system. The date/time value stored there will be an integer representing seconds since the epoch which, for any recent Apple OS is GMT or UTC since the start of 1904 (classic) or 1970 (UNIX).
The only backup problems I have are associated with time stamps on my SE/30 file server that is old enough to timestamp files in seconds after the epoch in the local time zone including daylight saving settings. But one does need to keep the clocks synchronized properly.
Formatting of the file timestamps for display is up to a user. The file system just doesn't care if its m/d/y or d/m/y.
--
--> A fair tax is one that you pay but I don't <--
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden