Class: PartPeriod
Defined in: | partperiod.coffee |
Overview
Period of moments with placeholders. That is useful for compareing repeating period. Currently, PartPeriod objects are not support timezones.
Property Summary
- (PartTime) begin
- (PartTime) end
Class Method Summary
- . (Hash) parse(periodString) get partperiod data from partperiod string
Instance Method Summary
- # (Boolean) includes(date) is date in the period?
- # (String) toString()
Class Method Details
.
(Hash)
parse(periodString)
Note:
This is not instance method but static method.
get partperiod data from partperiod string
Constructor Details
#
(void)
constructor(periodString)
make a partperiod
Examples:
Construct
new PartPeriod()
new PartPeriod('*-10-12/*-*-*')
new PartPeriod('1970-1-1/1990-1-1')
Instance Method Details
#
(Boolean)
includes(date)
is date in the period?
#
(String)
toString()