Re: date "Jan" --> date object
Re: date "Jan" --> date object
- Subject: Re: date "Jan" --> date object
- From: Andy Wylie <email@hidden>
- Date: Sun, 17 Nov 2002 10:19:11 +1300
on Fri, 15 Nov 2002 10:40:54 -0500 Arthur J. Knapp wrote:
>
There needs to be a way to get and set the month by integer, (as well as
>
the weekday). The are many algorithmic ways to do this, but they shouldn't
>
be nessesary. I believe most scripters would appreciate this ability.
>
>
For scripters with more advanced time-related needs, there should be a
>
simple coercion of a date to/from seconds since the era. There are also
>
vanilla ways to do this, but a nice built in coercion would be much better.
Akua offers the following coercions...
Date Record as date
date as Date Record
integer as date
date as integer
real as date
date as real
real as Date Record
integer as Date Record
(current date) as Date Record
--> {date era:0, date year:2002, date month:11, date day:17, date hour:9,
date minute:28, date second:54, date weekday:1, date yearday:321, date
yearweek:47, date weekday name:"Sunday", date month name:"November"}
http://www.akua.com/Software/AkuaSweets/index.html
_____________________________ Andy
_______________________________________________
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.