• 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: Michelle Steiner <email@hidden>
  • Date: Mon, 14 Mar 2005 14:12:56 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mar 14, 2005, at 1:55 PM, Todd Geist wrote:

I created this script which works just fine but I was wondering if there was
a better way.

Here's my effort:

set the dt to (current date) -- replace with whatever method of getting the date that you need
set the FullString to my CompileDate(dt)


on CompileDate(input)
set the FullString to (year of input as text) & pad(day of input as text) & pad(month of input as integer as text) & "_" & time of input as text
end CompileDate


on pad(instring)
	return text -2 through -1 of ("0" & instring)
end pad

- -- Michelle

- --
Your right to free speech does not incur an obligation for anyone to listen.



-----BEGIN PGP SIGNATURE----- Version: PGP Desktop 9.0.0 (Build 1799) Comment: To you from me, courtesy of PGP.

iQA/AwUBQjX+akX3pGKCIlLEEQKy9QCfalLbI35yW+GBovb5Tw6E2R9M15MAn0DD
YXeI66YEAF+iqHMe54+vCgLK
=cdCg
-----END PGP SIGNATURE-----
_______________________________________________
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: Re: Time Stamp String
  • Previous by thread: Re: Time Stamp String
  • Next by thread: Re: Time Stamp String
  • Index(es):
    • Date
    • Thread