Re: Current hour and minute
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