There was an error while loading. Please reload this page.
1 parent 7f6d819 commit 8518f86Copy full SHA for 8518f86
src/get_time.gs
@@ -1,7 +1,20 @@
1
+
2
+list TIME_WEEKDAYS = [
3
+ "Monday",
4
+ "Tuesday",
5
+ "Wednesday",
6
+ "Thursday",
7
+ "Friday",
8
+ "Saturday",
9
+ "Sunday"
10
+];
11
12
%define TIME() (days_since_2000() + 10957) * 86400
13
%define TIME_NS() (days_since_2000() + 10957) * 86400e+9
14
15
%define SCRATCH_DAYS() (days_since_2000() - 2691)
16
17
%define CURRENT_MILLISECOND() (86400000 * days_since_2000() % 1000)
18
%define CURRENT_MICROSECOND() (86400000000 * days_since_2000() % 1000)
19
20
+%define CURRENT_WEEKDAY() TIME_WEEKDAYS[(current_day_of_week() - 1) % 7]
0 commit comments