Example of usage of the timestamp_array class.
Example of usage of the timestamp_array class.
#include <cassert>
{
constexpr uint64_t epoch = 1737639900;
const date::time_zone* new_york = date::locate_zone("America/New_York");
const date::time_zone* paris = date::locate_zone("Europe/Paris");
std::vector<sparrow::timestamp<std::chrono::seconds>> input_values;
input_values.emplace_back(new_york, date::sys_time<std::chrono::seconds>{std::chrono::seconds(epoch)});
assert(ar.size() == 1);
assert(ar[0].has_value());
assert(ar[0].value().get_sys_time().time_since_epoch().count() == epoch);
return EXIT_SUCCESS;
}