Dayparting
December 29, 2015
A Dayparting micro library to present time of day in Dayparts.
Overview
Dayparting is a JS micro-library (with no external dependencies) to convert time of day into dayparts eg; 8:00 AM => Early Morning. It follows standard dayparting conventions (read more about Dayparting on Wikipedia).
It supports converting given Date
object into string representing part of day, localization is fully
supported by providing JSON of Strings, it also supports dynamic locale switching.