libsacio
1.0.2
Seismic Analysis Code I/O Library
|
High-precision, long duration time value. More...
Public Member Functions | |
timespec64 | timespec64_now () |
Get now as a timespec64 value. More... | |
timespec64 | timespec64_undef () |
Get the time associated with Year 0, Day 1. More... | |
timespec64 | timespec64_from_yjhmsf (int64_t year, int jday, int hour, int min, int sec, int64_t ns) |
Create a timespec64 value from Year, Day of Year, Hour, Minute, Second, Nanosecond. More... | |
timespec64 | timespec64_from_ymdhmsf (int64_t year, int month, int day, int hour, int min, int sec, int64_t ns) |
Create a timespec64 value from Year, Month, Day, Hour, Minute, Second, Nanosecond. More... | |
int | timespec64_parse (const char *buf, timespec64 *t) |
Parse a string into a timespec64 value. More... | |
void | timespec64_print (timespec64 *t) |
Print out a timespec64 value. More... | |
timespec64 | timespec64_add_duration (timespec64 a, duration *d) |
Add a duration to a timespec64. More... | |
int | timespec64_cmp (timespec64 *a, timespec64 *b) |
Compare two timespec64 values. More... | |
char * | strptime64t (const char *buf, const char *fmt, timespec64 *t) |
Parse a string into a timespec64 value. More... | |
size_t | strftime64t (char *dst, size_t n, const char *fmt, timespec64 *t) |
Format a struct TM value. More... | |
void | timespec64_to_ymd (timespec64 *t, int64_t *year, int *month, int *day, int *oday) |
Get dates values from timespec64. More... | |
Data Fields | |
int64_t | tv_sec |
int64_t | tv_nsec |
High-precision, long duration time value.
int64_t timespec64::tv_nsec |
Number of nanoseconds
int64_t timespec64::tv_sec |
Number of seconds, epoch 1970/1/1 00:00:00