#include <teca_calendar_util.h>
|
| | 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) |
| |
|
|
long | index |
| |
|
double | time |
| |
|
int | year |
| |
|
int | month |
| |
|
int | day |
| |
|
int | hour |
| |
|
int | minute |
| |
|
double | second |
| |
brief A floating point time value and its corresponding year, month day, hour minute and second
◆ 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] | i | the index of the time value |
| [in] | t | the time value |
| [in] | YYYY | the year |
| [in] | MM | the month |
| [in] | DD | the day |
| [in] | hh | the hour |
| [in] | mm | the minute |
| [in] | ss | the 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] | i | the index of the time value |
| [in] | t | the time value |
| [in] | units | the units t is in |
| [in] | calendar | the calendar system the units are in |
The documentation for this struct was generated from the following file: