NASA Logo
Ocean Color Science Software

ocssw V2022
tmgrn Namespace Reference

Functions

const boost::posix_time::ptime epoch (boost::gregorian::date(1970, 1, 1))
 
std::stringgranule_start_time ()
 
std::stringgranule_end_time ()
 
std::time_t pt_to_time_t (const bt::ptime &pt)
 
double seconds_from_epoch (const std::string &s)
 

Variables

const std::locale formats []
 

Function Documentation

◆ epoch()

const boost::posix_time::ptime tmgrn::epoch ( boost::gregorian::date(1970, 1, 1)  )

◆ granule_end_time()

std::string& tmgrn::granule_end_time ( )

◆ granule_start_time()

std::string& tmgrn::granule_start_time ( )

◆ pt_to_time_t()

std::time_t tmgrn::pt_to_time_t ( const bt::ptime &  pt)

◆ seconds_from_epoch()

double tmgrn::seconds_from_epoch ( const std::string s)

Variable Documentation

◆ formats

const std::locale formats[]
Initial value:
= {
std::locale(std::locale::classic(), new bt::time_input_facet("%Y-%m-%dT%H:%M:%S")),
std::locale(std::locale::classic(), new bt::time_input_facet("%Y/%m/%d %H:%M:%S")),
std::locale(std::locale::classic(), new bt::time_input_facet("%d.%m.%Y %H:%M:%S")),
std::locale(std::locale::classic(), new bt::time_input_facet("%Y-%m-%dT%H:%M:%SZ")),
std::locale(std::locale::classic(), new bt::time_input_facet("minutes since %Y-%m-%d %H:%M:%S"))
}

Definition at line 19 of file Interpolation.hpp.