get_time

Function get_time 

Source
fn get_time(utc: bool) -> String
Expand description

Get the current time in a specific format.

§Arguments

  • utc - Boolean flag to return the time in UTC timezone.

§Returns

Returns the current datetime as a String.