Signature Description Parameters
template<typename T>
static std::vector<typename I>
gen_datetime_index(const char *start_datetime, const char *end_datetime, time_frequency t_freq, long increment = 1, DT_TIME_ZONE tz = DT_TIME_ZONE::LOCAL);
This static method generates a date/time-based index vector that could be fed directly to one of the load methods. Depending on the specified frequency, it generates specific timestamps (see below).
It returns a vector of I timestamps.
Currently I could be any built-in numeric type or DateTime
NOTE: It is the responsibility of the programmer to make sure I type is big enough to contain the frequency.
start_datetime, end_datetime: They are the start/end date/times of requested timestamps.
They must be in the following format:
MM/DD/YYYY [HH[:MM[:SS[.MMM]]]]
t_freq: Specifies the timestamp frequency. Depending on the frequency, and I type specific timestamps are generated as follows:
  • I type of DateTime always generates timestamps of DateTime.
  • Annual, monthly, weekly, and daily frequencies generates YYYYMMDD timestamps.
  • Hourly, minutely, and secondly frequencies generates epoch timestamps (64 bit).
  • Millisecondly frequency generates nano-second since epoch timestamps (128 bit).
increment: Increment in the units of the frequency
tz: Time-zone of generated timestamps