19 #ifndef __date_time_functions_H__ 20 #define __date_time_functions_H__ 48 std::string
DICOM_date_time_to_DT(
const std::string& date,
const std::string& time,
const std::string& TZ =
"");
80 std::string date, time;
113 #endif // __date_time_functions_H__ int time_zone_offset_in_secs()
returns the current time_zone in seconds (without DST)The result is independent of DST...
Definition: date_time_functions.cxx:31
DateTimeStrings secs_since_Unix_epoch_to_Interfile_datetime(double secs, int time_zone_offset_in_secs)
convert epoch to Interfile date-times string in specified time zone (+3600 is CET) ...
Definition: date_time_functions.cxx:253
A simple structure to hold 2 strings (date and time)
Definition: date_time_functions.h:72
double Interfile_datetime_to_secs_since_Unix_epoch(const DateTimeStrings &intf, bool silent)
convert Interfile DateTime strings to seconds since the Unix epoch (i.e. 1 Jan 1970 00:00:00 UTC)Inte...
Definition: date_time_functions.cxx:247
double DICOM_datetime_to_secs_since_Unix_epoch(const std::string &str_org, bool silent)
convert DICOM DT string to seconds since the Unix epoch (i.e. 1 Jan 1970 00:00:00 UTC) ...
Definition: date_time_functions.cxx:149
int current_time_zone_and_DST_offset_in_secs()
returns the current time_zone in seconds (taking DST into account)
Definition: date_time_functions.cxx:53
DateTimeStrings DICOM_datetime_to_Interfile(const std::string &str)
Convert from DICOM DT to Interfile.
Definition: date_time_functions.cxx:221
std::string secs_since_Unix_epoch_to_DICOM_datetime(double secs, int time_zone_offset_in_secs)
convert epoch to DICOM DT string in specified time zone (+3600 is CET)
Definition: date_time_functions.cxx:201
std::string Interfile_datetime_to_DICOM(const DateTimeStrings &dt)
Convert from Interfile to DICOM DT.
Definition: date_time_functions.cxx:232
std::string DICOM_date_time_to_DT(const std::string &date_org, const std::string &time_org, const std::string &TZ_org)
concatenate date, time and optional time_zone info.Minimal checks on format are performed, calling error() if input is incorrect.
Definition: date_time_functions.cxx:95
basic configuration include file