Maria GDK 5.0.0.778
Documentation of native code in develop branch
Loading...
Searching...
No Matches
Maria::TimeRange Class Reference

Public Member Functions

std::optional< date::sys_seconds > ResolveStartTime (std::optional< date::sys_seconds > t0Reference=std::nullopt) const
 
std::optional< date::sys_seconds > ResolveEndTime (std::optional< date::sys_seconds > startReference=std::nullopt) const
 
bool Intersects (date::sys_seconds startTime, date::sys_seconds endTime, std::optional< date::sys_seconds > t0Reference=std::nullopt) const
 

Static Public Member Functions

static std::tm SafeGmTime (const std::time_t *timep)
 
static std::time_t TimeGMPortable (std::tm *tm)
 
static std::tm SafeLocalTime (const std::time_t *timep)
 
static std::string FixCronExpression (const std::string &expr)
 
static int GetUtcOffsetMinutes ()
 
static std::chrono::system_clock::time_point CronNextUtc (const cron::cronexpr &expr, date::sys_seconds base)
 
static std::string ExpandNow (const std::string &timeString, const std::string &timeRef="")
 
static std::optional< std::chrono::seconds > ParseDuration (const std::string &s)
 
static std::optional< date::sys_seconds > ParseDateTime (const std::string &s)
 
static bool IsDuration (const std::string &s)
 
static TimeRange Parse (const std::string &rangeStr)
 
static date::sys_seconds FloorToSeconds (const std::chrono::system_clock::time_point &tp)
 
static std::string ToIsoUtcString (date::sys_seconds timePoint)
 
static std::string ToIsoUtcString (std::chrono::system_clock::time_point tp)
 
static bool RangesOverlap (date::sys_seconds aStart, date::sys_seconds aEnd, date::sys_seconds bStart, date::sys_seconds bEnd)
 
static std::string GetCurrentZulu8601TimeString (int64_t offsetSeconds=0)
 

Public Attributes

std::optional< date::sys_seconds > StartTime
 
std::optional< std::chrono::seconds > RelativeStartTime
 
std::optional< date::sys_seconds > EndTime
 
std::optional< std::chrono::seconds > RelativeEndTime
 
std::optional< std::chrono::seconds > CronEventDuration
 
std::optional< cron::cronexpr > CronExpression
 
std::string RangeString
 

The documentation for this class was generated from the following file: