parse
Parse the given value to a Period.
Return
a period
Parameters
value
the value to parse
Parse the given value to a period.
Return
a period
Parameters
value
the value to parse
unit
the period unit to use if the value doesn't specify one (null
will default to d)