Previous | Index | Next |
Miscellaneous methods
timeValuesFrom:
Pass an AS date or NSDate. Returns an array of {hour, minutes, seconds, milliseconds} in the current calendar.
+ (NSArray *)timeValuesFrom:(id)ASOrNSDate
ASOrNSDate = an AS date or NSDate
an array of {hour, minutes, seconds, milliseconds}
Version 1.3.0
use scripting additions
use framework "Foundation"
use script "BridgePlus"
load framework
get (current date)
--> date "Monday, 23 November 2015 at 11:59:42 AM"
set theResult to current application's SMSForder's timeValuesFrom:(current date)
ASify from theResult
--> {11, 59, 42, 0}
theResult as list
--> {11, 59, 42, 0}