1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

string: make left/right private

This commit is contained in:
Alexander Medvednikov
2019-11-30 12:00:05 +03:00
parent b92a3544f5
commit b38283dcf1
5 changed files with 10 additions and 10 deletions

View File

@@ -421,7 +421,7 @@ pub fn (t Time) weekday_str() string {
}
pub struct C.timeval {
tv_sec u64
tv_sec u64
tv_usec u64
}
@@ -527,7 +527,7 @@ pub fn (t Time) get_fmt_date_str(fmt_dlmtr FormatDelimiter, fmt_date FormatDate)
}
month := '${t.smonth()}'
year := t.year.str().right(2)
year := t.year.str()[2..]
return match fmt_date {
.ddmmyy { '${t.day:02d}|${t.month:02d}|$year' }