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

Re: Dates


  • Subject: Re: Dates
  • From: Ed Stockly <email@hidden>
  • Date: Thu, 3 Jan 2008 09:38:45 -0800


One way to construct a date is to use a string, but there are other ways.  As to the format of the string, it depends entirely on how you have things set up in the International System Preferences panel.



AppleScript is very flexible in coercing strings to dates and I don't believe that the International preferences comes into play that much (maybe in determining if 1/5/08 refers to January or May, but I'm not sure about that). The preferences do dictate the  format of the coercion from date to date string.

There still may be a problem with this script. The date object is precise:

--("Wednesday, January  2, 2008 3:22:23 PM")

Are you really looking only for messages that were sent at that exact time, to the second?

You may need to narrow your search to include only the date, not the time, or the date and the hour or minute, but not the second.

ES


=
 _______________________________________________
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: Dates
      • From: "Mark J. Reed" <email@hidden>
  • Prev by Date: Re: choose from list - question
  • Next by Date: Re: Dates
  • Previous by thread: Re: Dates
  • Next by thread: Re: Dates
  • Index(es):
    • Date
    • Thread