MACSCRPT Archives

May 2003

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Steve Roy <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Wed, 21 May 2003 12:20:56 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (24 lines)
[log in to unmask] (Eric Schult) wrote:

> Another crutch upon which have propped myself up is the dateToStamp and
> stampToDate commands in Tanaka's OSAX, and it's not immediately clear to me if
> there's an alternate way in OS X to handle date manipulations like that.
>
> For example, if I want to coerce a a string (i.e. "mmddyyyy") into a date, I'm
> completely beholden to Tanaka's to do that.
>
> Any clues?

current date
--> date "Wednesday, May 21, 2003 12:19:43 PM"

date "12/25/1995"
--> date "Monday, December 25, 1995 12:00:00 AM"

Steve

--
Steve Roy <[log in to unmask]>
Personal homepage: <http://homepage.mac.com/sroy>
Projects homepage: <http://www.roydesign.net>

ATOM RSS1 RSS2