commit - b5a2cc6cc395ade394d889b1d4e05cd1f88b0705
commit + 1f74a69405d6ac36d7c810810daa44c4e09ac352
blob - d66cace43704a399c82a1ae0f12316467b90abbb
blob + 298347f1ed7c5bbf3650897708932a39aa100495
--- src/lib/core/datetime.c
+++ src/lib/core/datetime.c
epoch_timezone_lookup(date->epoch, date->tzindex, &gmtoff, &isdst);
return isdst != 0;
-}
-
-long
-datetime_gmtoff(const struct datetime *date)
-{
- int isdst = 0;
- long gmtoff = date->tzoffset * 60;
-
- epoch_timezone_lookup(date->epoch, date->tzindex, &gmtoff, &isdst);
- return gmtoff;
}
void
blob - af831e0a25899d62405ecd6cbfc8e9ef3af7dbf8
blob + d45c990af5148a1c20da52a4d7b0c5419a9b34ba
--- src/lib/core/datetime.h
+++ src/lib/core/datetime.h
*/
bool
datetime_isdst(const struct datetime *date);
-
-/**
- * Return gmtoff of a given @sa datetime moment.
- */
-long
-datetime_gmtoff(const struct datetime *date);
/**
* Parse datetime text in ISO-8601 given format, and construct output