From 0d615443dc452f85f3d6b1b2c82d92a9c8db1fff Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Sun, 27 Oct 2024 18:41:00 -0400 Subject: Update DateTime API to have separate methods for getting each component instead of get(...) --- test/datetime.tm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'test') 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") -- cgit v1.2.3