IDBLUE logo
IDBlueTimestamp.h
00001 
00002 // Copyright © 2013 Cathexis Innovations Inc. All rights reserved.
00003 
00004 #import <Foundation/Foundation.h>
00005 #import "IDBlue.h"
00006 #import "CByteArray.h"
00007 
00013 @interface IDBlueTimestamp : NSObject {
00014 @private        
00015         // The year byte - number of years since 2000.
00016         byte _year;
00017         byte _month;
00018         byte _day;
00019         byte _hour;
00020         byte _minute;
00021         byte _second;
00022 }
00023 
00024 -(byte) year;
00025 -(byte) month;
00026 -(byte) day;
00027 -(byte) hour;
00028 -(byte) minute;
00029 -(byte) second;
00030 -(void) setYear: (byte) year;
00031 -(void) setMonth: (byte) month;
00032 -(void) setDay: (byte) day;
00033 -(void) setHour: (byte) hour;
00034 -(void) setMinute: (byte) minute;
00035 -(void) setSecond: (byte) second;
00036 
00040 -(NSDate*) toNSDate;
00041 
00047 -(id) initFromNSDate: (NSDate*) date;
00048 
00056 -(id) initFromByteArray: (CByteArray*) data withIndex: (int) index;
00057 
00062 -(NSString*) toString;
00063 
00073 -(id) initFromString: (NSString*) s;
00074 
00075 @end

 

Generated on Mon Jan 19 2015 15:47:37
Copyright © 2015 Cathexis Innovations Inc. All Rights Reserved.