• 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: Time Stamp String
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Time Stamp String (From: Todd Geist <email@hidden>)

  • Prev by Date: Re: Time Stamp String
  • Next by Date: TextEdit suppresses a folder.
  • Previous by thread: Re: Time Stamp String
  • Next by thread: Re: Time Stamp String
  • Index(es):
    • Date
    • Thread