current_time

Modified on Thu, 24 Aug 2023

Description

Use this function to obtain the current time.

Syntax

current_time():Date

Returns

Return ValueDescription
DateReturns a Date object representing the current time.

Sample

ExampleResultDescription
current_time()Sun Apr 10 2022 21:47:35 GMT-0400 (Eastern Daylight Time)Returns the current time as a Date object, which may be represented as "Sun Apr 10 2022 21:47:35 GMT-0400 (Eastern Daylight Time)" depending on the system's time format.

To view all the Date functions, click here.

See Also