pike.git
/
lib
/
modules
/
Calendar.pmod
/
YMD.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Calendar.pmod/YMD.pike:218:
int __hash() { return jd; } // --- query //! method float fraction_no() //! method int hour_no() //! method int julian_day() //! method int leap_year() //! method int minute_no() //! method int month_day()
+
//! method int month_days()
//! method int month_no() //! method int second_no() //! method int utc_offset() //! method int week_day() //! method int week_no() //! method int year_day() //! method int year_no() //! method string month_name() //! method string month_shortname() //! method string month_day_name()
pike.git/lib/modules/Calendar.pmod/YMD.pike:306:
if (w==CALUNKNOWN) make_week(); return w; } int month_day() { if (md==CALUNKNOWN) make_month(); return md; }
+
int month_days()
+
{
+
if (mnd==CALUNKNOWN) make_month();
+
return mnd;
+
}
+
int week_day() { if (wd==CALUNKNOWN) make_week(); return wd; } int year_day() { return yd; }
pike.git/lib/modules/Calendar.pmod/YMD.pike:451:
]); } } // --- string format ---- //! method string format_iso_ymd(); //! 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(); //! method string format_week_short(); //! method string format_month(); //! method string format_month_short(); //! method string format_iso_time(); //! method string format_time(); //! method string format_time_short(); //! method string format_time_xshort();
pike.git/lib/modules/Calendar.pmod/YMD.pike:563:
week_day_shortname(), month_day(),month_shortname(),y); } string format_ymd() { if (m==CALUNKNOWN) make_month(); 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(); return sprintf("%04d%02d%02d",y,m,md); } string format_ymd_xshort() { if (m==CALUNKNOWN) make_month(); return sprintf("%02d%02d%02d",y%100,m,md);