<cDateTime>.Now

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Date and Time > cDateTime > cDateTime_Methods >

<cDateTime>.Now

 

Description

 

Sets the cDateTime variable to current UTC date and time.

 

Syntax

 

<cDateTime>.Now

 

Returns

 

None.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

' Create an object with current date and time

Dim myDateTime As New cDateTime

 

' Original form

MsgBox 0, "Your current time is:" + $CRLF + myDateTime.toString

 

Sleep 1000

 

' Updates myDateTime time with current date and time

myDateTime.Now

 

' Modified form

MsgBox 0, "Current time is now:" + $CRLF + myDateTime.toString