current_time
Modified on Thu, 24 Aug 2023
Description
Use this function to obtain the current time.
Syntax
current_time():Date
Returns
Return Value | Description |
---|---|
Date | Returns a Date object representing the current time. |
Sample
Example | Result | Description |
---|---|---|
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
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article