formatEnglishDateNepaliTimeToIsoFormat

Converts an English (Gregorian) date and time to ISO 8601 UTC format.

Return

A string in ISO 8601 format representing the UTC date and time. The result is in the format YYYY-MM-DDTHH:mm:ssZ (Zulu time).

Example:

val englishDate = SimpleDate(2024, 9, 9)
val time = SimpleTime(14, 45, 15, 0)
val isoFormat = NepaliDateConverter.formatEnglishDateNepaliTimeToIsoFormat(englishDate, time)
println(isoFormat) // Outputs: "2024-09-09T09:00:15Z"

Parameters

englishDate

The date in the Gregorian calendar (English date) as a SimpleDate.

time

The Nepali time of day as a SimpleTime, default is the current time.