aboutsummaryrefslogtreecommitdiff
path: root/test.nim
diff options
context:
space:
mode:
authorhistoria <gravel.justness270@slmail.me>2024-07-30 14:24:38 -0400
committerhistoria <gravel.justness270@slmail.me>2024-07-30 14:24:38 -0400
commitcccf5f28651a54fbab55dfb79456fbecf9d71a78 (patch)
tree7cd74b7f32f0a0ce9622d6f3ab5f2c70fc0180d8 /test.nim
parent43d1d1ef9b75e694f1b3e49ceaf319d87f6b14a9 (diff)
downloadsoon-cccf5f28651a54fbab55dfb79456fbecf9d71a78.tar.gz
Added logic for matching ranges
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)