getEnglishDateNepaliTimeFromIsoFormat
Converts ISO 8601 UTC format to CustomDateTime which represents the English CustomCalendar and Nepali SimpleTime.
Return
CustomDateTime which represents the English CustomCalendar and Nepali SimpleTime
The result is a Gregorian date and a Nepal-time clock reading, neither of which needs the Bikram Sambat conversion table, so any year parses. Use getNepaliDateTimeFromIsoFormat for the Bikram Sambat reading, which is limited to NepaliCalendarDefaults.EnglishYearRange.
Parameters
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.
Example:
val customEnglishDateTime = NepaliDateConverter.getEnglishDateNepaliTimeFromIsoFormat("2024-09-09T09:00:15Z)
println(customEnglishDateTime) // Outputs: CustomDateTime(customCalendar = CustomCalendar(..), simpleTime = SimpleTime(..))