powered by
Returns the current system time formatted according to the provided format string.
now(format = "%Y-%m-%d %H:%M:%OS2")
A string representing the current system time in the specified format.
A string representing the desired time format. Default is "%Y-%m-%d %H:%M:%OS2".
now() # e.g. "2024-06-12 16:09:32.41" now("%H:%M:%S") # e.g. "16:09:32"
Run the code above in your browser using DataLab