Added AbstractInterval::period() and byXXX() methods (fixes #3, refs #56).