Main Page Modules Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages
Date.h File Reference
Classes for date and time manipulation.
More...
#include <SimData/Archive.h>
#include <SimData/Exception.h>
#include <SimData/BaseType.h>
Go to the source code of this file.
Detailed Description
Classes for date and time manipulation.
Classes for date and time manipulation.
Date: Generic date class storing YMD and julian days
Zulu: Very simple time class storing seconds since midnight as a float. Rollover functions are provided to integrate with the Date class. Time is ZULU (UTC), with an optional TZ field that can be used to adjust for the local timezone.
DateZulu: This class simply combines Date and Zulu, implementing date/time rollover. Some astronical time routines, such as MST (GMST/LMST) are implemented.
SimTime: This is nothing more than a typedef to the internal time storage type used by Zulu (currently float).
SimDate: This class combines DateZulu and BaseType so that date and time can be serialized to and from data archives. A simple parsing function for XML cdata streams is also implemented.
Define Documentation
| #define SIMDATA_F1p0_24p0 0.041666666666666667L
|
|
| #define SIMDATA_F1p0_36525p0 0.000027378507871321L
|
|
| #define SIMDATA_F1p0_60p0 0.016666666666666667L
|
|
| #define SIMDATA_F1p0_86400p0 0.000011574074074074L
|
|
Typedef Documentation
|
|
Simution time (seconds).
SimTime is not actually a class, but just a floating point type that stores seconds since midnight. |
| typedef unsigned char uint08
|
|
Function Documentation
|
|
Return the current time in seconds.
The offset is platform dependent, so do not use this value for absolute time. |
| SIMDATA_EXCEPTION |
( |
InvalidDate |
|
) |
|
|
|
|
Exception thrown by the Date class when invalid dates are detected.
|
|
|
Get the time interval (in seconds) between last calls to tstart() and tend().
The precision should be about 1-2 ms on most platforms. |
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.
Generated on Tue Oct 14 12:06:39 2003, using Doxygen 1.2.18.
|
![[SF.net]](http://sourceforge.net/sflogo.php?group_id=17780&type=2)
|