STIR
6.2.0
|
Functions for date-time conversions. More...
Go to the source code of this file.
Classes | |
struct | stir::DateTimeStrings |
A simple structure to hold 2 strings (date and time ) More... | |
Namespaces | |
stir | |
Namespace for the STIR library (and some/most of its applications) | |
Functions | |
int | stir::time_zone_offset_in_secs () |
returns the current time_zone in seconds (without DST)The result is independent of DST. | |
int | stir::current_time_zone_and_DST_offset_in_secs () |
returns the current time_zone in seconds (taking DST into account) More... | |
std::string | stir::DICOM_date_time_to_DT (const std::string &date, const std::string &time, const std::string &TZ="") |
concatenate date, time and optional time_zone info.Minimal checks on format are performed, calling error() if input is incorrect. | |
double | stir::DICOM_datetime_to_secs_since_Unix_epoch (const std::string &str, bool silent=false) |
convert DICOM DT string to seconds since the Unix epoch (i.e. 1 Jan 1970 00:00:00 UTC) More... | |
std::string | stir::secs_since_Unix_epoch_to_DICOM_datetime (double secs, int time_zone_offset_in_secs=current_time_zone_and_DST_offset_in_secs()) |
convert epoch to DICOM DT string in specified time zone (+3600 is CET) | |
DateTimeStrings | stir::DICOM_datetime_to_Interfile (const std::string &str) |
Convert from DICOM DT to Interfile. | |
std::string | stir::Interfile_datetime_to_DICOM (const DateTimeStrings &) |
Convert from Interfile to DICOM DT. | |
double | stir::Interfile_datetime_to_secs_since_Unix_epoch (const DateTimeStrings &, bool silent=false) |
convert Interfile DateTime strings to seconds since the Unix epoch (i.e. 1 Jan 1970 00:00:00 UTC)Interfile uses a format year 1900:01:01, time 02:01:00.00. More... | |
DateTimeStrings | stir::secs_since_Unix_epoch_to_Interfile_datetime (double secs, int time_zone_offset_in_secs=current_time_zone_and_DST_offset_in_secs()) |
convert epoch to Interfile date-times string in specified time zone (+3600 is CET) | |
Functions for date-time conversions.