return the union of the blocks [a, b] and [c, d]
calculate the overlap between time block [a, b] and [c, d].
wrap a promise and return a new promise with a cancel
method
convert an (axios request) error to string message
Get release note for current version && render. Part of this function can be seen as an extremely-lightweight MarkDown renderer.
Calculate a 32 bit FNV-1a hash
the input string to hash
a 32-bit unsigned integer
highlight a matched part of a short string given that match
is not undefined and match.match === expMatch
the string to inject highlight
the expected matched field in match.match
an array of match objects, sorted in numeric order of their start
property
convert 1:00AM
style time to minutes starting from 00:00
convert 13:00
style time to minutes starting from 00:00
parse 08/27/2019 - 12/17/2019
style dates to a tuple of numbers
null when fail to parse
Example usage and return value:
parseTimeAll('MoWeFr 10:00AM - 11:00AM') => [['Mo', 'We', 'Fr'], [600, 660]]
save a string a as text file
the string to save as a file
convert 24 hour format time to 12 hour format.
the time in 24 hour format
Example usage and return value:
to12hr('17:00') => '5:00PM'
convert 12 hr to 24 hr
Example usage and return value:
to12hr('5:00PM') => '17:00'
Convert a schedule to iCalendar format.
Schedule object to be parsed into iCalendar format.
a string of iCalendar format
Generated using TypeDoc
the module containing utilities functions used across the whole project