68#ifndef OPENSWMM_ENGINE_DATETIME_H
69#define OPENSWMM_ENGINE_DATETIME_H
90#define SWMM_DATETIME_DATE_DELTA 693594
#define SWMM_ENGINE_API
Definition openswmm_2d.h:62
SWMM_ENGINE_API int swmm_datetime_encode_time(int hour, int minute, int second, double *out)
Encode a wall-clock time as the fractional-day part of a SWMM DateTime.
Definition openswmm_datetime_impl.cpp:48
SWMM_ENGINE_API int swmm_datetime_decode_date(double value, int *year, int *month, int *day)
Decode the date portion of a SWMM DateTime.
Definition openswmm_datetime_impl.cpp:60
SWMM_ENGINE_API int swmm_datetime_encode_date(int year, int month, int day, double *out)
Encode a calendar date as a SWMM DateTime (date portion only).
Definition openswmm_datetime_impl.cpp:39
SWMM_ENGINE_API int swmm_datetime_add_seconds(double value, double seconds, double *out)
Add a (possibly fractional) number of seconds to a SWMM DateTime.
Definition openswmm_datetime_impl.cpp:90
SWMM_ENGINE_API int swmm_datetime_time_diff(double value1, double value2, long *out)
Compute the difference, in whole seconds, between two SWMM DateTimes.
Definition openswmm_datetime_impl.cpp:98
SWMM_ENGINE_API int swmm_datetime_decode_time(double value, int *hour, int *minute, int *second)
Decode the time-of-day portion of a SWMM DateTime.
Definition openswmm_datetime_impl.cpp:75
Build-generated visibility and deprecation macros for the engine API.