• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Date formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date formatting


  • Subject: Re: Date formatting
  • From: Nigel Smith <email@hidden>
  • Date: Wed, 05 Mar 2003 10:28:32 +0000

On the Epoch:

May not help in this case, but might be worth noting for future use...

Not only can you get an AppleScript date for the epoch using

set theEpoch to (date (do shell script "date -r 0 \"+%a %b %e %Y
%H:%M:%S\""))

But you can set it according to different time zones:

set theEpoch to (date (do shell script "env TZ=US/Pacific date -r 0
\"+%a %b %e %Y %H:%M:%S\""))

You can find a collection of pre-rolled zones in the /usr/share/zoneinfo/
directory.

Nigel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: Date formatting (From: Nigel Smith <email@hidden>)

  • Prev by Date: Address Book Chat Handles
  • Next by Date: Address Book script contribution
  • Previous by thread: Re: Date formatting
  • Next by thread: Date Formatting
  • Index(es):
    • Date
    • Thread