5. Overview Date and TimeΒΆ

Functions

GetFileTime

GetFileTime returns the date and time at which given files were created, last accessed and last written to.

GetLocalTime

The GetLocalTime function retrieves the current local date and time.

GetTickCount

GetTickCount returns the number of milliseconds that have elapsed since UniPlot was started.

SetFileTime

SetFileTime sets the date and time at which given files were created, last accessed and last written to.

date

date returns the current date as a string.

tic

tic retrieves the number of milliseconds that have elapsed since UniPlot was started.

time

time gets the time when the function is called as a string.

toc

toc retrieves the number of milliseconds that have elapsed since the tic function was called.

The DT_xxx function using an 8-byte floating-point number. Days are represented by whole number increments starting with 30 December 1899, midnight as time zero. Hour values are expressed as the absolute value of the fractional part of the number. The following table illustrates this.

Date and time Representation:

30 December 1899, midnight

0.00

1 January 1900, midnight

2.00

4 January 1900, midnight

5.00

4 January 1900, 6 A.M.

5.25

4 January 1900, noon

5.50

4 January 1900, 9 P.M.

5.875

Functions

DT_Format

DT_Format generates a formatted string representation of the rmDate values.

DT_GetCurrentTime

DT_GetCurrentTime returns the current date/time as a real number.

DT_GetDay

DT_GetDay returns the day the rmDateTime value represents (1 to 31).

DT_GetDayOfWeek

DT_GetDayOfWeek returns the day of the week the rmDateTime value represents (Sunday = 1).

DT_GetDayOfYear

DT_GetDayOfYear returns the day of the week the rmDateTime value object represents (Jan. 1 = 1).

DT_GetHour

DT_GetHour returns the hour the rmDateTime value represents (0-23).

DT_GetMinute

DT_GetMinute returns the minute the rmDateTime values represents (0-59).

DT_GetMonth

DT_GetMonth returns the month the rmDateTime values represents (1-12).

DT_GetSecond

DT_GetSecond returns the second the rmDateTime values represents. (0-59)

DT_GetTimeZoneOffsets

DT_GetTimeZoneOffsets returns information about the time zone and daylight saving time.

DT_GetYear

DT_GetYear returns the year the rmDateTime values represents.

DT_ParseDateTime

DT_ParseDateTime parses a date/time string and returns a real number.

DT_SetDate

DT_SetDate sets the value to the specified date-only value.

DT_SetDateTime

DT_SetDateTime sets the value to the specified date/time value.

DT_SetLocale

DT_SetLocale sets the time/date format for a language.

DT_SetTime

DT_SetTime sets the value to the specified time-only value.

DT_UnixTime

DT_UnixTime converts the Unix time value into the date/time format used by UniPlot.

id-1904373