getNepaliDateTimeFromIsoFormat
Converts ISO 8601 UTC format to CustomDateTime which represents the Nepali CustomCalendar and Nepali SimpleTime.
Return
CustomDateTime which represents the Nepali CustomCalendar and Nepali SimpleTime
Parameters
isoDateTime
The ISO 8601 format string Examples of the ISO 8601 format dateTime:
2020-08-30T18:43:00Z2020-08-30T18:43:00.50Z2020-08-30T18:43:00.123456789Z2020-08-30T18:40:00+03:002020-08-30T18:40:00+03:30:20
2020-01-01T23:59:59.123456789+01+02020-01-31T23:59:59Z
Throws
if the isoDateTime text cannot be parsed or the date boundaries are exceeded.
Example:
val customNepaliDateTime = NepaliDateConverter.getNepaliDateTimeFromIsoFormat("2024-09-09T09:00:15Z)
println(customNepaliDateTime) // Outputs: CustomDateTime(customCalendar = CustomCalendar(..), simpleTime = SimpleTime(..))Content copied to clipboard