Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members

FXEX::FXDateTime Namespace Reference

FXDateTime implements useful routines needed for converting to and from strings. More...


Functions

FXTime now ()
FXint milliseconds ()
FXlong microseconds ()
FXTime localtime (FXTime time=0)
FXTime gmtime (FXTime time=0)
FXString convert (FXTime time, const FXString &format="%d/%m/%C%y%H:%M:%S", FXbool UTC=FALSE)
FXTime convert (const FXString &s, const FXString &format="%d/%m/%C%y%H:%M:%S")


Detailed Description

FXDateTime implements useful routines needed for converting to and from strings.

The codes used for formatting are listed below - your platform may provide more or less of these. (see strftime for more info)

The following is taken from the 'man' pages for strftime, from Mandrake 8.1

The following codes implement the following conversions:

All other characters are left alone


Function Documentation

FXTime now
 

The current time (current host time), in seconds.

FXint milliseconds
 

returns a millisecond resolution value, for the current second, suitable for millisecond widgets.

FXlong microseconds
 

returns a microsecond resolution value, suitable for measuring execution time.

FXTime localtime FXTime time = 0
 

The current local time; if time==0, current system time is used.

FXTime gmtime FXTime time = 0
 

the current UTC time; if time==0, current system time is used.

FXString convert FXTime time,
const FXString & format = "%d/%m/%C%y %H:%M:%S",
FXbool UTC = FALSE
 

Convert time to date string as per strftime.

FXTime convert const FXString & s,
const FXString & format = "%d/%m/%C%y %H:%M:%S"
 

Convert date string to time as per strptime.