Date Struct Reference

#include <asn.h>


Detailed Description

Data type used for date and time processing.


Public Member Functions

Initialization
void loadunix (double t1)
 Load object with double in standard UNIX format.
Conversions
double tounix () const
 Convert object to standard UNIX format as a double.
str tostr () const
 Convert Date object to a cdk::str object.

Data Fields

int month
 an integer in the range 1 – 12
int day
 an integer in the range 1 –31
int year
 an integer in the range 1980 – 2030
int hour
 an integer in the range 0 – 23
int minute
 an integer in the range 0 – 59
int second
 an integer in the range 0 – 59
int gmtoffset
 offset from GMT in hours (e.g., PDT = +7)


Member Function Documentation

void loadunix ( double  t1  ) 

Load object with double in standard UNIX format.

Parameters:
t1 a double representing the Date to be loaded in standard UNIX format.

str tostr (  )  const

Convert Date object to a cdk::str object.

Returns:
a str representation of the date.

double tounix (  )  const

Convert object to standard UNIX format as a double.

Returns:
a double representing the contents of this Date object in standard UNIX format.


The documentation for this struct was generated from the following file:
ISC Cryptographic Development Kit - User's Guide
ISC website
Questions? E-mail ISC technical support
Copyright© 2002-2006 Information Security Corp. All rights reserved.