rlg::utils

Function generate_timestamp

Source
pub fn generate_timestamp() -> String
Expand description

Generates a timestamp string in ISO 8601 format.

§Returns

A String containing the current timestamp in ISO 8601 format.

§Examples

use rlg::utils::generate_timestamp;

let timestamp = generate_timestamp();
println!("Current timestamp: {}", timestamp);