<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Language > BuiltIn Functions > Date and Time >





A cDateTime Class contains a date and time value, allowing easy calculations.

The internal representation emulates the Windows FILETIME structure as a quad-integer.
This value represents the number of 100-nanosecond intervals since January 1, 1601. A nanosecond is one-billionth of a second.


You create a cDateTime object the following way:


Dim MyTime AS cDateTime

MyTyme = New cDateTime




Dim MyTime AS New cDateTime


Once you have created a cDateTime object, you can manipulate it using the its methods and properties.

By default a new a cDateTime object will contain the current local date and time on this computer