Previous Index Next

BridgePlus.framework, SMSForder Class Methods

Category

Miscellaneous methods

Method

dateValuesFrom:

Summary

Pass an AS date or NSDate. Returns an array of {era, year, month, day} in the current calendar.

Signature

+ (NSArray *)dateValuesFrom:(id)ASOrNSDate

Parameters

ASOrNSDate = an AS date or NSDate

Result

an array of {era, year, month, day} in the current calendar

Availability

Version 1.3.0

Notes

 

Sample

use scripting additions

use framework "Foundation"

use script "BridgePlus"

load framework


get (current date)

--> date "Monday, 23 November 2015 at 11:57:34 AM" 

set theResult to current application's SMSForder's dateValuesFrom:(current date)

ASify from theResult

--> {1, 2015, 11, 23}

theResult as list

--> {1, 2015, 11, 23}


Click here to open script in a script editor