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:208:
int myd; [m,md,mnd,myd]=month_from_yday(y,yd); } void make_week() // set wy, w and wd from jd { int wnd,wjd; [wy,w,wd,wnd,wjd]=week_from_julian_day(jd); }
-
int __hash() { return jd; }
+
protected
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()
pike.git/lib/modules/Calendar.pmod/YMD.pike:1169:
from=0.0,to=n; else error("Illegal arguments\n"); if (from<0.0) from=0.0; if (to>n) to=n; return ({Fraction("timeofday_f",rules,unix_time(),0, (int)to,(int)(inano*(to-(int)to))) ->autopromote()}); }
-
TimeRange `*(int|float n)
+
protected
TimeRange `*(int|float n)
{ if(intp(n)) return set_size(n,this); else return second()*(int)(how_many(Second)*n); } array(TimeRange) split(int|float n, void|function|TimeRange with) { if(!with)