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

Parameters

isoDateTime

The ISO 8601 format string Examples of the ISO 8601 format dateTime:

  • 2020-08-30T18:43:00Z

  • 2020-08-30T18:43:00.50Z

  • 2020-08-30T18:43:00.123456789Z

  • 2020-08-30T18:40:00+03:00

  • 2020-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 customEnglishDateTime = NepaliDateConverter.getEnglishDateNepaliTimeFromIsoFormat("2024-09-09T09:00:15Z)
println(customEnglishDateTime) // Outputs: CustomDateTime(customCalendar = CustomCalendar(..), simpleTime = SimpleTime(..))