Parse.day( 65342300 ); // UTC timestamp
Parse.day( '01/02/2014' ); // strings in many formats
Parse.day( day ); // return a passed instance
Parse.day( [2018, 0, 2] ); // array: 01/02/2018
Parse.day( {year: 2018, month: 2} ); // object: 03/01/2018
Parse.day( true ); // today
The input to parse.
The Day parsed or null
if the value is not valid.
Parses EventInput and returns an Event.
The input to parse.
A function to use when parsing data input into the desired type.
A function to use when parsing meta input into the desired type.
The parsed value.
Parses a value and converts it to a FrequencyCheck.
The input to parse into a function.
The Day property the frequency is for.
A function which determines whether a value matches a frequency.
Parses an array of FrequencyCheck functions and returns an array of functions for only the checks that were specified by the user.
The array of check functions to filter through.
The array of user specified checks.
Parses an array of excluded days into a map of excluded days where the array value and returned object key are Day.dayIdentifier.
Parse.modifier( [ 20180101, 20140506 ] ); // {'20180101': true, '20140506': true}
Parse.modifier( [ 20180101, Day.build(2014,4,6) ] ); // {'20180101': true, '20140506': true}
The input to parse.
The default value if the input given is an array of identifiers.
A function to use to parse a modifier.
The modifier to set the identifiers and values of and return.
The object with identifier keys and true
values.
Parses an object which specifies a schedule where events may or may not repeat and they may be all day events or at specific times.
The input to parse into a schedule.
A function to use when parsing meta input into the desired type.
The schedule to set the values of and return.
An instance of the parsed Schedule.
Parses a value and tries to convert it to a Time instance.
Parse.time( time ); // return a passed instance
Parse.time( 9 ); // 09:00:00.000
Parse.time( 3009 ); // 09:30:00.000
Parse.time( 593009 ); // 09:30:59.000
Parsetime( '09' ); // 09:00:00.000
Parse.time( '9:30' ); // 09:30:00.000
Parse.time( '9:30:59' ); // 09:30:59.000
Parse.time( {hour: 2} ); // 02:00:00.000
The input to parse.
The instance parsed or null
if it was invalid.
Parses a value and tries to convert it to an array of Time instances. If any of the given values are not a valid time value then the resulting array will not contain a time instance.
The input to parse.
A non-null array of time instances.
Generated using TypeDoc
The class which takes user input and parses it to specific structures.