• 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: Current date and future date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current date and future date


  • Subject: Re: Current date and future date
  • From: has <email@hidden>
  • Date: Wed, 6 Feb 2002 19:16:02 +0000

Andy Wylie:

>--note 'date "28/02/2002"' compiles to "Thursday, 28 February 2002 12:00:00
>AM"

With one proviso: how the string "28/02/2002" is parsed depends on the
settings in the user's Date & Time control panel. The above formatting
would be misinterpreted on a Mac that has its D&T c.p. set to, say, US date
& time format (i.e. month/day/year).

This is something to be aware of if you are converting strings into date
objects while the script is running, ie:

======================================================================

set theString to "11/01/2002"

set theString to "11/01/2002"
set theDate to date theString
--> date "Friday, January 11, 2002 12:00:00am" (British D&T setting)
--> date "Friday, November 1, 2002 12:00:00am" (US D&T setting)

======================================================================

Cheers,

has
_______________________________________________
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.

  • Prev by Date: Re: UniqueID
  • Next by Date: Re: another Finder file problem
  • Previous by thread: Re: Ethernet Hardware Address
  • Next by thread: Re: Current date and future date
  • Index(es):
    • Date
    • Thread