• 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: Getting the time of day
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting the time of day


  • Subject: Re: Getting the time of day
  • From: Steve Mills <email@hidden>
  • Date: Wed, 24 Sep 2003 09:37:21 -0500

On Wednesday, Sep 24, 2003, at 09:18 US/Central, Lyle Petro wrote:

I would like to be able to determine the time of day via AppleScript. Am I
missing something simple, or is a little mathematical magic involved?

It depends on what you want to do with the time. If you just want to present it to the user or stick it in a file or whatever, you can use "time string of (current date)". But if you need it to do time math, like figuring out how long it took to do something, then use "time of (current date)", which returns the number of seconds since midnight.

Steve Mills
Drummer, Mac geek
http://sjmills5.home.mchsi.com/
_______________________________________________
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.

References: 
 >Getting the time of day (From: "Lyle Petro" <email@hidden>)

  • Prev by Date: Re: Wierd error
  • Next by Date: Re: When = == ¡Á
  • Previous by thread: Getting the time of day
  • Next by thread: Re: Getting the time of day
  • Index(es):
    • Date
    • Thread