• 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: Current hour and minute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Current hour and minute


  • Subject: Re: Current hour and minute
  • From: Bill Briggs <email@hidden>
  • Date: Thu, 1 Feb 2001 21:18:37 -0300

At 6:41 PM -0600 01/02/01, Christopher C. Stone wrote:
Greetings,

As was mentioned the current date format is dependent upon settings in the Date & Time control panel.

Here's one way to do it if your settings are US and non-24-Hour time.

set AppleScript's text item delimiters to {" "}

set theTime to (get {text 1 thru 5, text -2 thru -1} of time string of (current date)) as string

set AppleScript's text item delimiters to {""}
theTime

(watch the wrap)


Watch the TIDs! Not sure why they are there. And to get rid of that pesky trailing colon...

(get {text -7 thru -11, text -3 thru -1} of ("0" & time string of (current date))) as text

- web


References: 
 >Current hour and minute (From: Tod Hallberg <email@hidden>)
 >Re: Current hour and minute (From: Emmanuel <email@hidden>)
 >Re: Current hour and minute (From: "Christopher C. Stone" <email@hidden>)

  • Prev by Date: FW: "giving up after" in pre 8.5?
  • Next by Date: Re: Current hour and minute
  • Previous by thread: Re: Current hour and minute
  • Next by thread: Re: Current hour and minute
  • Index(es):
    • Date
    • Thread