summaryrefslogtreecommitdiff
path: root/src/map/date.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/date.c')
-rw-r--r--src/map/date.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/map/date.c b/src/map/date.c
index a20578e51..20ab9fe95 100644
--- a/src/map/date.c
+++ b/src/map/date.c
@@ -77,6 +77,13 @@ int date_get_sec(void)
return lt->tm_sec;
}
+int date_get_dayofweek(void)
+{
+ time_t t = time(NULL);
+ struct tm *lt = localtime(&t);
+ return lt->tm_wday;
+}
+
/*==========================================
* Star gladiator related checks
*------------------------------------------*/