• 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: parsing Unix date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parsing Unix date


  • Subject: Re: parsing Unix date
  • From: Michael Grant <email@hidden>
  • Date: Fri, 9 Jan 2004 15:06:19 -0600

On Jan 9, 2004, at 12:08 PM, Doug McNutt wrote:

On Jan 9, 2004, at 8:48 AM, Michael Grant wrote:
set d to (do shell script "date") --> "Fri Jan 9 01:00:02 CST 2004"
date d --> date "Friday, January 9, 2004 9:01:00 AM"

Is the problem that the dates are 58 seconds apart? Or is it the abbreviations? Or is it that one includes the time zone?

The dates are eight hours apart. Applescript apparently interprets the 9 as both the day of the month AND the hour (dropping the seconds in the Unix date).

Michael

--
He is not only dull himself, he is the cause of dullness in others.
- Samuel Johnson
_______________________________________________
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: 
 >parsing Unix date (From: Michael Grant <email@hidden>)
 >Re: parsing Unix date (From: Craig Sutherland <email@hidden>)
 >Re: parsing Unix date (From: Michael Grant <email@hidden>)
 >Re: parsing Unix date (From: Doug McNutt <email@hidden>)

  • Prev by Date: Seeking info: Exchange Account Creation in EntourageX ??
  • Next by Date: Folder Actions and BBEdit problem this time without HTML
  • Previous by thread: Re: parsing Unix date
  • Next by thread: Re: parsing Unix date
  • Index(es):
    • Date
    • Thread