summaryrefslogtreecommitdiff
path: root/include/mailutils/datetime.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/mailutils/datetime.h')
-rw-r--r--include/mailutils/datetime.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/mailutils/datetime.h b/include/mailutils/datetime.h
index 0ad84b595..de00618a0 100644
--- a/include/mailutils/datetime.h
+++ b/include/mailutils/datetime.h
@@ -24,6 +24,29 @@
/* ----------------------- */
/* Date & time functions */
/* ----------------------- */
+
+/* Argument ranges:
+
+ year != 0, AD if > 0, BC if < 0
+ 1 <= month <= 12
+ 1 <= day <= maxday(month)
+*/
+/* Compute Julian Day for the given date */
+int mu_datetime_julianday (int year, int month, int day);
+/* Compute day of week (Sunday - 0) */
+int mu_datetime_dayofweek (int year, int month, int day);
+/* Compute ordinal date (1-based) */
+int mu_datetime_dayofyear (int year, int month, int day);
+/* Return number of days in the year */
+int mu_datetime_year_days (int year);
+
+/* Day of week and month names in C locale */
+extern const char *_mu_datetime_short_month[];
+extern const char *_mu_datetime_full_month[];
+extern const char *_mu_datetime_short_wday[];
+extern const char *_mu_datetime_full_wday[];
+
+
struct mu_timezone
{
int utc_offset; /* Seconds east of UTC. */

Return to:

Send suggestions and report system problems to the System administrator.