- ⌂ time
- Methods
- Static Methods
time::get_timestamp()
Returns a string representing the current time with microseconds in YYYY-MM-DD HH:MM:SS.mmm format. Hours are in 24-hour format.
Prototype
string static get_timestamp()
Example
// output like: Current time: 2018-10-06 22:14:13.425
$timestamp = \io_comand_util\time::get_timestamp()
echo("Current time: $timestamp\n");