ORE Studio 0.0.4
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
datetime Class Referencefinal

Generates fake datetime values for testing purposes. More...

#include <datetime.hpp>

Collaboration diagram for datetime:
Collaboration graph

Static Public Member Functions

static std::chrono::system_clock::time_point past_timepoint ()
 Generates a random past datetime as a time_point.
 
static std::string past_string ()
 Generates a random past datetime as a formatted string.
 

Detailed Description

Generates fake datetime values for testing purposes.

Member Function Documentation

◆ past_timepoint()

std::chrono::system_clock::time_point past_timepoint ( )
static

Generates a random past datetime as a time_point.

Returns a random datetime between 1970-01-01 and 2038-12-31.

Here is the caller graph for this function:

◆ past_string()

std::string past_string ( )
static

Generates a random past datetime as a formatted string.

Returns a string in the format "YYYY-MM-DD HH:MM:SS".