Re: Time Stamp String
Re: Time Stamp String
- Subject: Re: Time Stamp String
- From: John Stewart <email@hidden>
- Date: Mon, 14 Mar 2005 17:49:56 -0500
On 03/14/05 at -0800 Todd Geist said this
>Hello Everyone,
>
>I wanted to create a routine that would take the current date and return it
>in the form
>
>yyyymmdd_time
>
>Ex
>
>20050314_46211
>
>
>I created this script which works just fine but I was wondering if there was
>a better way.
>
Better? Depends on your definition of better, certainly shorter to code and without all the manipulation.
set t to (time of (get current date)) as text
set timestamp to (do shell script "date +%Y%m%d_") & t
--> 20050314_63945
JBS
--
If Fed Ex and UPS were to merge, would they call it Fed UP? - George Carlin
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden