- Index
- »
- axon
- »
- func:parseTime
def
func:parseTime
parseTime(val, pattern: "hh:mm:SS", checked: true)
Parse a Str into a Time. If the string cannot be parsed into a valid Time and checked is false then return null, otherwise throw ParseErr. See Time.toLocale
for pattern.
Examples:
parseTime("14:30", "h:mm") parseTime("2:30pm", "k:mma") parseTime("2:30:00pm", "k:mm:ssa")