Day PartialTime - smvTime form: D20120123 - timeType: "day" - timeIndex: Number of days from 19700101 - timeLabel form: 2012-01-23
Month PartialTime - smvTime form: M201201 - timeType: "month" - timeIndex: Number of months from 19700101 - timeLabel form: 2012-01
PartialTime is a "gross" time concept.
Quarter PartialTime - smvTime form: Q201201 - timeType: "quarter" - timeIndex: Number of quarters from 19700101 - timeLabel form: 2012-Q1
TimePanel is a consecutive range of PartialTimes It has a "start" PartialTime and "end" PartialTime, both are inclusive.
TimePanel is a consecutive range of PartialTimes It has a "start" PartialTime and "end" PartialTime, both are inclusive. "start" and "end" have to have the same timeType
Week PartialTime
Week PartialTime
User can specify custom "startOn" day for a week, for example
val w = new Week(2012, 2, 1, "Sunday")
As a PartialTime, Week has the following attributes
For default start day as Monday: - smvTime form: W20120227 - timeType: "week" - timeIndex: week number from 1970-01-01, with week-0 always be the week 1970-1-1 is in - timeLabel form: "Week of 2012-02-27"
For custom start day:a Week(2012, 3, 4, "Sunday") - smvTime form: W(7)20120304 - "(7)" here denotes the start day is a Sunday - timeType: "week_start_on_Sunday"
PartialTime is a "gross" time concept. It's closer to a "bussiness" concept than scientific or engineering concept. We currently have Quarter, Month, and Day
A PartialTime represented in DF as a String column, and typically named as
smvTimewith values such as "Q201301", "M201312", "D20130423".A PartialTime can also represented as
timeType+timeIndex, e.g. "M201512" => (timeType = "month", timeIndex = 551) WheretimeIndexis an integere which count from 1970-01-01.A PartialTime also has a
timeLabelwhich is a human readable string