From 57466f7960129b48ad65b7cbc22c5b84b2b23a06 Mon Sep 17 00:00:00 2001 From: Anisuzzaman Khan Date: Mon, 24 Jun 2019 01:40:46 +0600 Subject: [PATCH] added doc --- time/time.v | 1 + 1 file changed, 1 insertion(+) diff --git a/time/time.v b/time/time.v index 29566e1fdc..f29034ef94 100644 --- a/time/time.v +++ b/time/time.v @@ -333,6 +333,7 @@ pub fn (t Time) day_of_week() int { return day_of_week(t.year, t.month, t.day) } +// weekday_str() returns the current day in string (upto 3 characters) pub fn (t Time) weekday_str() string { i := t.day_of_week() - 1 return Days.substr(i * 3, (i + 1) * 3)