pike.git/
lib/
modules/
Calendar.pmod/
YMD.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2017-09-23
2017-09-23 19:53:04 by Martin Nilsson <nilsson@fastmail.com>
7a6689f17c78e074c2732e3fa55d802724abf5b6 (
8
lines) (+
8
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
US date formatting, m/d/y.
464:
//! method string format_ymd(); //! method string format_ymd_short(); //! method string format_ymd_xshort();
+
//! method string format_mdy();
//! method string format_iso_week(); //! method string format_iso_week_short(); //! method string format_week();
576:
return sprintf("%04d-%02d-%02d",y,m,md); }
+
string format_mdy()
+
{
+
if (m==CALUNKNOWN) make_month();
+
return sprintf("%d/%d/%d",m,md,y%100);
+
}
+
string format_ymd_short() { if (m==CALUNKNOWN) make_month();