aboutsummaryrefslogtreecommitdiffstats
path: root/core/strndup.h
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-05-23 11:59:53 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-09-29 16:13:03 -0700
commit0f4154bacccd0884ffbd5ae5bfa1fa16991675dc (patch)
tree2fd756947d9cba9a7c59d552b95933ddb54f2d06 /core/strndup.h
parentefdc875aa3174ba53a819490e498a59ba0399dc6 (diff)
downloadsubsurface-0f4154bacccd0884ffbd5ae5bfa1fa16991675dc.tar.gz
core: add functions to core/time.c
To support the new filter code, add helper functions that turn timestamps into year and day-of-week to core/time.c. Internally, these functions simply call utc_mktime() to break down the timestamp and then extract the wanted value. This may appear inefficient, but testing shows that modern compilers are quite effective in throwing away the unneeded calculations. FWIW in this respect clang10 outperformed gcc10. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'core/strndup.h')
0 files changed, 0 insertions, 0 deletions