Re: Date - 1 day in Address Book
Re: Date - 1 day in Address Book
- Subject: Re: Date - 1 day in Address Book
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 21 Jul 2003 08:47:47 -0700
On 7/21/03 7:33 AM, "Michelle Steiner" <email@hidden> wrote:
>
On Monday, July 21, 2003, at 07:05 AM, Steve Roy wrote:
>
>
> set d to "2.9.1970"
>
> set theDate to date d
>
> theDate as string
>
> --> "MercoledC,, 2 settembre 1970 0:00:00"
>
>
--> "Monday, February 9, 1970 12:00:00 AM"
>
>
set d to "2.9.1970"
>
set theDate to date d
>
tell application "Address Book"
>
set thePerson to make new person at end with properties {first
>
name:"Foo", last name:"Bar"}
>
>
tell thePerson
>
set birth date to theDate
>
end tell
>
save addressbook
>
end tell
>
>
The date in the address book is Monday, February 9, 1970
Because you live in the US, on the west side of GMT, so adding hours (as
opposed to subtracting, as for those in Europe and Asia) doesn't change the
date, just the time. If you now use AppleScript to get the birthday of
thePerson you'll find it's 8:00 AM if you live on the west coast, 5:00 AM if
you live on the east coast. etc. One hour earlier if the date's in the
summer. If you check the birthday of any person you enter manually in
Address Book, it's 12:00:00 pm. See my last post.
--
Paul Berkowitz
_______________________________________________
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.