Reels
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
reels::TimeUtil Class Reference

A common ancestor of Clips and Targets to avoid duplicating time management. More...

#include <reels.h>

Inheritance diagram for reels::TimeUtil:
Inheritance graph
[legend]

Public Member Functions

 TimeUtil ()
 
TimePoint get_time (pChar p_t)
 Convert time as a string to a TimePoint (using the object's time_format). More...
 
void set_time_format (pChar fmt)
 Sets the public property time_format to simplify the python interface. More...
 

Public Attributes

char time_format [128] = "%Y-%m-%d %H:%M:%S"
 Date and time format for insert_row() and define_event() More...
 

Detailed Description

A common ancestor of Clips and Targets to avoid duplicating time management.

Constructor & Destructor Documentation

◆ TimeUtil()

reels::TimeUtil::TimeUtil ( )
inline

Member Function Documentation

◆ get_time()

TimePoint reels::TimeUtil::get_time ( pChar  p_t)
inline

Convert time as a string to a TimePoint (using the object's time_format).

Parameters
p_tA string containing a valid date and time in the object's time_format.
Returns
The TimePoint corresponding to that time or a negative value on error.

◆ set_time_format()

void reels::TimeUtil::set_time_format ( pChar  fmt)
inline

Sets the public property time_format to simplify the python interface.

Parameters
fmtThe time format in standard calendar time format http://www.gnu.org/software/libc/manual/html_node/Formatting-Calendar-Time.html

Member Data Documentation

◆ time_format

char reels::TimeUtil::time_format[128] = "%Y-%m-%d %H:%M:%S"

Date and time format for insert_row() and define_event()


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