TECA
The Toolkit for Extreme Climate Analysis
teca_calendar_util::time_point Struct Reference

#include <teca_calendar_util.h>

Collaboration diagram for teca_calendar_util::time_point:

Public Member Functions

 time_point (long i, double t, int YYYY=0, int MM=1, int DD=1, int hh=0, int mm=0, double ss=0.0)
 
 time_point (long i, double t, const std::string &units, const std::string &calendar)
 

Public Attributes

long index
 
double time
 
int year
 
int month
 
int day
 
int hour
 
int minute
 
double second
 

Detailed Description

brief A floating point time value and its corresponding year, month day, hour minute and second

Constructor & Destructor Documentation

◆ time_point() [1/2]

teca_calendar_util::time_point::time_point ( long  i,
double  t,
int  YYYY = 0,
int  MM = 1,
int  DD = 1,
int  hh = 0,
int  mm = 0,
double  ss = 0.0 
)
inline

Initialize explicitly.

Parameters
[in]ithe index of the time value
[in]tthe time value
[in]YYYYthe year
[in]MMthe month
[in]DDthe day
[in]hhthe hour
[in]mmthe minute
[in]ssthe second

◆ time_point() [2/2]

teca_calendar_util::time_point::time_point ( long  i,
double  t,
const std::string &  units,
const std::string &  calendar 
)

Initialize from a floating point time value. The calendar and units must be provided.

Parameters
[in]ithe index of the time value
[in]tthe time value
[in]unitsthe units t is in
[in]calendarthe calendar system the units are in

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