• 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: Wrong day name in Date format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong day name in Date format


  • Subject: Re: Wrong day name in Date format
  • From: Doug McNutt <email@hidden>
  • Date: Sun, 25 Oct 2009 13:41:43 -0600

At 10:38 -0700 10/25/09, Michelle Steiner wrote:
If you enter a wrong day name in a date with Snow Leopard, Applescript automatically corrects it upon compilation.  For example, if you enter
date "Monday, October 25 2009 14:00:00"

It compiles to
date "Sunday, October 25, 2009 12:00:00 AM"

In previous versions, it would throw an error at compilation.
-- Michelle

1) One reason for including a day name is for data validation. How can AppleScript be sure that it was the name and not the numerical data was the error?

2) Is the change from   14:00:00  to  12:00:00 AM reasonable to anyone?  12:00:00 AM is ambiguous and 1400 is pretty clearly 2 PM. It looks, at least here, as though EST and MST were confused they way they often are in bank statements.

3) Why doesn't AppleScript add the current time zone setting while it's at it? Those -0700 items in email times are helpful.

4) Does the change apply to data read from, say, an email header as well as when dates are added in code? Why would a date be hard coded anyway? Are dates in comment fields changed?

--

Applescript syntax is like English spelling:
Roughly, though not thoroughly, thought through.
 _______________________________________________
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

  • Follow-Ups:
    • Re: Wrong day name in Date format
      • From: Christopher Nebel <email@hidden>
    • Re: Wrong day name in Date format
      • From: Michelle Steiner <email@hidden>
References: 
 >Wrong day name in Date format (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Passing ampersands through a shell script
  • Next by Date: Re: Passing ampersands through a shell script
  • Previous by thread: Wrong day name in Date format
  • Next by thread: Re: Wrong day name in Date format
  • Index(es):
    • Date
    • Thread