![]() |
MapLink Pro 11.1.1.0.
Envitia MapLink Pro: The Ultimate Mapping Application Toolkit
|
This class defines an interface which provides a concrete meaning for TSLTimeInstant objects. It also provides conversion methods between TSLTimeInstant objects and dates/time.
MapLink provides a default implementation which users can use for their own derived TSLTimers. To do so, simply call the static method TSLTimeServer::defaultTimeHelper(). On Windows platforms, this represents time in 100 ns increments from the epoch of January 1, 1601 (UTC).
Public Member Functions | |
virtual TSLTimeInstant | getCurrentTime () const =0 |
virtual bool | getDateTime (TSLTimeInstant const &time, TSLTimeUInt16 &day, TSLTimeUInt16 &month, TSLTimeUInt16 &year, TSLTimeUInt16 &hour, TSLTimeUInt16 &minutes, TSLTimeUInt16 &seconds, TSLTimeUInt16 &milliseconds, bool local=false) const =0 |
virtual TSLTimeInterval | hertz (double t) const =0 |
virtual double | hertz (TSLTimeInterval const &interval) const =0 |
virtual TSLTimeInterval | hours (double h) const =0 |
virtual double | hours (TSLTimeInterval const &interval) const =0 |
virtual TSLTimeInstant | makeTime (TSLTimeUInt16 day, TSLTimeUInt16 month, TSLTimeUInt16 year, TSLTimeUInt16 hour, TSLTimeUInt16 minutes, TSLTimeUInt16 seconds, TSLTimeUInt16 milliseconds, bool local=false) const =0 |
virtual TSLTimeInterval | milliseconds (double ms) const =0 |
virtual double | milliseconds (TSLTimeInterval const &interval) const =0 |
virtual TSLTimeInterval | minutes (double m) const =0 |
virtual double | minutes (TSLTimeInterval const &interval) const =0 |
virtual TSLTimeInterval | seconds (double s) const =0 |
virtual double | seconds (TSLTimeInterval const &interval) const =0 |
TSLTimeHelper () | |
virtual | ~TSLTimeHelper () |
|
inline |
Default constructor.
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Returns the current date/time as a TSLTimeInstant object.
|
pure virtual |
Returns the date/time represented by the supplied TSLTimeInstant object in terms of its components( day, year, month , etc).
time | A (const) reference to the TSLTimeInstant object. |
day | A reference to an unsigned 16-bit value representing the day of the month. |
month | A reference to an unsigned 16-bit value representing the month of the year (January = 1, etc.). |
year | A reference to an unsigned 16-bit value representing the year (must be greater than 1601). |
hour | A reference to an unsigned 16-bit value representing the hour (using a 24-hour clock). |
minutes | A reference to an unsigned 16-bit value representing the minute. |
seconds | A reference to an unsigned 16-bit value representing the number of seconds. |
milliseconds | A reference to an unsigned 16-bit value representing the number of milliseconds. |
local | If true, then the returned time will be expressed a local time, otherwise it is GMT. Default value is false. |
|
pure virtual |
Converts the given number of ticks/second to a TSLTimeInterval object.
t | The number of ticks/second. |
|
pure virtual |
Converts the given TSLTimeInterval object to a number of ticks/second.
interval | The interval object. |
|
pure virtual |
Converts the given number of hours to a TSLTimeInterval object.
h | The number of hours. |
|
pure virtual |
Converts the given TSLTimeInterval object to a number of hours.
interval | The interval object. |
|
pure virtual |
Creates a TSLTimeInstant object based on the supplied date/time components( day, year, month , etc).
day | An unsigned 16-bit value representing the day of the week (Sunday = 0, etc.). |
month | An unsigned 16-bit value representing the month of the year (January = 1, etc.). |
year | An unsigned 16-bit value representing the year (must be greater than 1601). |
hour | An unsigned 16-bit value representing the hour (using a 24-hour clock). |
minutes | An unsigned 16-bit value representing the minute. |
seconds | An unsigned 16-bit value representing the number of seconds. |
milliseconds | An unsigned 16-bit value representing the number of milliseconds. |
local | If true, then the supplied time is a local time, otherwise it is GMT. Default value is false. |
|
pure virtual |
Converts the given number of milliseconds to a TSLTimeInterval object.
ms | The number of milliseconds. |
|
pure virtual |
Converts the given TSLTimeInterval object to a number of milliseconds.
interval | The interval object. |
|
pure virtual |
Converts the given number of minutes to a TSLTimeInterval object.
m | The number of minutes. |
|
pure virtual |
Converts the given TSLTimeInterval object to a number of minutes.
interval | The interval object. |
|
pure virtual |
Converts the given number of seconds to a TSLTimeInterval object.
s | The number of seconds. |
|
pure virtual |
Converts the given TSLTimeInterval object to a number of seconds.
interval | The interval object. |