aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-10-27 18:41:00 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-10-27 18:41:00 -0400
commit0d615443dc452f85f3d6b1b2c82d92a9c8db1fff (patch)
tree4fcc37c20916a3abe2bd6413bb129e1a663ed2e8 /test
parentf4d22958f70924f630265467c847d2352f4a34c1 (diff)
Update DateTime API to have separate methods for getting each component
instead of get(...)
Diffstat (limited to 'test')
-rw-r--r--test/datetime.tm4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/datetime.tm b/test/datetime.tm
index 37559996..19ca74b0 100644
--- a/test/datetime.tm
+++ b/test/datetime.tm
@@ -29,9 +29,7 @@ func main():
>> t:hours_till(t:after(minutes=60))
= 1
- weekday := 0
- >> t:get(weekday=&weekday)
- >> weekday # 1 = Sun, 2 = Mon, 3 = Tue
+ >> t:day_of_week() # 1 = Sun, 2 = Mon, 3 = Tue
= 3
>> t:format("%A")