• 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: date "Jan" --> date object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date "Jan" --> date object


  • Subject: Re: date "Jan" --> date object
  • From: "Arthur J. Knapp" <email@hidden>
  • Date: Fri, 15 Nov 2002 10:40:54 -0500

> Date: Thu, 14 Nov 2002 10:53:13 -0800
> Subject: Re: date "Jan" --> date object
> From: Chris Espinosa <email@hidden>

>> This from Emmanuel - dated 131102 01.02 pm:
>>> date "when may I do whatever I want?"
>>> --> May 1st

> I wish I could take some credit for the interesting side effects this
> generates, but almost anything on the Mac that tries to convert a
> string to a date using International Utilities will exhibit this exact
> behavior.

Speaking of International Utilities, it would be nice if the date object
had more powerful methods and properties for scripters to access, especially
with regards to GMT/UTC and to controling the display of a date as string.
It just seems silly that everything is based on the settings in the Date &
Time control panel, especially since there is no scriptable access to it.

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.


{ Arthur J. Knapp, of <http://www.STELLARViSIONs.com>
a r t h u r @ s t e l l a r v i s i o n s . c o m
}
_______________________________________________
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: OK - so who ate my digests?
  • Next by Date: Re: AppleScript 1.6 and Mac OS 8.6
  • Previous by thread: Re: date "Jan" --> date object
  • Next by thread: Re: date "Jan" --> date object
  • Index(es):
    • Date
    • Thread