<cDateTime>.UnixTime

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Language > thinBasic Functions > Date and Time > cDateTime > cDateTime_Properties >

<cDateTime>.UnixTime

 

Description

 

Returns the UnixTime corresponding to the local date time stored into a cDateTime object.

 

Syntax

 

n = <cDateTime>.UnixTime

 

Returns

 

Number.

 

Remarks

 

UnixTime represents the seconds since Jan 01 1970. (UTC)

 

Restrictions

 

IMPORTANT: This property assumes that current date and time stored into cDateTime object is a local time.

 

Read only.

 

See also

 

Examples

 

' Create an object with current date and time

Dim myDateTime As New cDateTime

 

' Show it to the user

MsgBox 0, "myDateTime as UNIX time:" + $CRLF + myDateTime.UnixTime