docs: check vlib/time too in the report-missing-dots-in-doc-comments job

This commit is contained in:
Delyan Angelov 2025-07-21 18:43:40 +03:00
parent 8578fd477a
commit ae0937c83e
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
9 changed files with 19 additions and 19 deletions

View file

@ -279,8 +279,7 @@ pub fn (t Time) relative_short() string {
return '${prefix}${y}y${suffix}'
}
// day_of_week returns the current day of a given year, month, and day,
// as an integer.
// day_of_week returns the current day of a given year, month, and day, as an integer.
pub fn day_of_week(y int, m int, d int) int {
// Sakomotho's algorithm is explained here:
// https://stackoverflow.com/a/6385934
@ -365,7 +364,7 @@ pub fn days_in_month(month int, year int) !int {
return res
}
// debug returns detailed breakdown of time (`Time{ year: YYYY month: MM day: dd hour: HH: minute: mm second: ss nanosecond: nanos unix: unix }`)
// debug returns detailed breakdown of time (`Time{ year: YYYY month: MM day: dd hour: HH: minute: mm second: ss nanosecond: nanos unix: unix }`).
pub fn (t Time) debug() string {
return 'Time{ year: ${t.year:04} month: ${t.month:02} day: ${t.day:02} hour: ${t.hour:02} minute: ${t.minute:02} second: ${t.second:02} nanosecond: ${t.nanosecond:09} unix: ${t.unix:07} }'
}