timestamp-range - Factor Documentation

timestamp-range


Vocabulary
calendar .ranges

Definition
USING: calendar math ;

IN: calendar.ranges

TUPLE: timestamp-range
{ from timestamp read-only initial: T{ timestamp } }
{ length integer read-only initial: 0 }
{ step duration read-only initial: T{ duration } } ;


Methods
USING: accessors calendar.ranges sequences ;

M: timestamp-range length length>> ;


USING: accessors calendar calendar.ranges kernel
sequences.private ;

M: timestamp-range nth-unsafe
[ step>> duration* ] keep from>> time+ ;

AltStyle によって変換されたページ (->オリジナル) /