![]() |
Public Member Functions | |
(byte) | - year |
(byte) | - month |
(byte) | - day |
(byte) | - hour |
(byte) | - minute |
(byte) | - second |
(void) | - setYear: |
(void) | - setMonth: |
(void) | - setDay: |
(void) | - setHour: |
(void) | - setMinute: |
(void) | - setSecond: |
(NSDate *) | - toNSDate |
(id) | - initFromNSDate: |
(id) | - initFromByteArray:withIndex: |
(NSString *) | - toString |
(id) | - initFromString: |
IDBlueTimestamp represents a date / time retrieved from an IDBLUE device. It contains year, month, day, hour, minute and second stored as bytes, where the year is relative to the year 2000.
- (id) initFromByteArray: | (CByteArray*) | data | |
withIndex: | (int) | index | |
Initialize the IDBlueTimestamp object from an array of bytes, ordered as year, month, day, hour, minute, second.
data | the byte array containing the date components |
index | the index in the byte array to start copying data from. |
- (id) initFromNSDate: | (NSDate*) | date |
Initialize the IDBlueTimestamp object from an NSDate object
date | the date to create the IDBlueTimestamp from |
- (id) initFromString: | (NSString*) | s |
Initialize an IDBlueTimestamp from a string
s | The timestamp as a string. Must be of the form yyyy-MM-dd HH:mm:ss |
- (NSDate *) toNSDate |
Gets an NSDate object that represents the current IDBlueTimestamp
- (NSString *) toString |
Convert the current IDBlueTimestamp object to a string representation of the form 'yyyy-MM-dd HH:mm:ss'