mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
added doc
This commit is contained in:
parent
fe19d6a62e
commit
57466f7960
1 changed files with 1 additions and 0 deletions
|
@ -333,6 +333,7 @@ pub fn (t Time) day_of_week() int {
|
||||||
return day_of_week(t.year, t.month, t.day)
|
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 {
|
pub fn (t Time) weekday_str() string {
|
||||||
i := t.day_of_week() - 1
|
i := t.day_of_week() - 1
|
||||||
return Days.substr(i * 3, (i + 1) * 3)
|
return Days.substr(i * 3, (i + 1) * 3)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue