aboutsummaryrefslogtreecommitdiff
path: root/test.nim
diff options
context:
space:
mode:
Diffstat (limited to 'test.nim')
-rw-r--r--test.nim12
1 files changed, 0 insertions, 12 deletions
diff --git a/test.nim b/test.nim
deleted file mode 100644
index 7333396..0000000
--- a/test.nim
+++ /dev/null
@@ -1,12 +0,0 @@
-import std/[times, os, strutils, strbasics, strscans, sets, re, tables], parseopt
-
-proc getWeekNumber(date: DateTime): int =
- return int((date.monthDay - 1) / 7) + 1
-
-proc getWeekNumberFromEnd(date: DateTime): int =
- let daysInMonth = getDaysInMonth(date.month, date.year)
- let day = date.monthday
- return int((daysInMonth - day) / 7) + 1
-
-var d = now() - 21.days
-echo getWeekNumber(d)