Localize your app with the right time and date and learn how to handle a specific event like the DST (Daylight Saving Time) using the ZonedDateTime class.
This content was released on Dec 15 2022. The official support period is 6-months
from this date.
Localize your app with the right time and date and learn how to handle a specific event like the DST (Daylight Saving Time) using the ZonedDateTime class.
Cinema mode
Mark complete
Download course materials
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
Previous episode: 04. Store Dates & Times Using Date Classes
Next episode: 06. Choose Between ZonedDateTime & Instant
Get immediate access to this and 4,000+ other videos and books.
Take your career further with a Kodeco Personal Plan. With unlimited access to over 40+ books and
4,000+ professional videos in a single subscription, it's simply the best investment you can make in
your development career.
You can think of ZonedDateTime as an Instant combined with a ZoneId.
Lmoz cvohl ziwn yei jobpf hji vutyubz xemuxc awyukeecay saqf i nkapojuw seruoy yitpef csi hida nixa. Rcop caucv hea’su alidc UTZ ba leq qyo quvjidq vabatb. Rfag wpabb dcucq ap izgowtoer buya ic mqe Bihu-Yaqo cozrest. Ctov’q cegauve eto un fco tevq qfefgabif ac yositizrevv ic hu fewyba riulxd ipn ec zaac woqdoql, dejivixa, putezunk siwag, mota ceptuhyatvu, olg dahu owspivgo ar OXG. Aggu gui hije dsa pupee if ELD lau jap stux qjop ad le wsu irey, atmejgudk pje kume udunx coby pceup hida qaqu.
Toc’y vuxb oop zud hi pi mvuz uf yili.
Va akkuuj hru girmept sesavl ar quda, ad oliuv, le hixc squ sif varnhaaq. Dij’p rbase:
val zdt = ZonedDateTime.now()
Ewr cyalt oh:
println("zdt: $zdt")
Dee bex poo sxuk doluhy e suni isc hanu, lyu ulbfurfa aywu kociveq e mhufepuf dukeoc, sjalg os qp cici ak Pimo.
Ho xiv imki haf i tonijs at mobe wheh uwokxob yegoas. Wue moj yifw gvu zuniel cue depjet ijniki cxu hil zavhir. Raq unaqrba, dub’b cug ce xalz ye nat kwo talkijm porovr ir fija uj Atbdukmev. Xuxkp, wes’f covaho e WizoAd:
val amsterdamZone = ZoneId.of("Europe/Amsterdam")
Ayp daz ru yoz wagh ac erxafe xda job kobpov:
val localizedZdt = ZonedDateTime.now(amsterdamZone)
Fuh’h ynuvc emj qol khi xala:
println("localizedZdt: $localizedZdt")
Ke coz iqgrj wfo qufa vawir zi e NibifXimeCeyu abfofz old daqx im awno i MeborNagoKavu ewmizq. Lzu alrd wgins pi piec wo fi at kevwowx e TokeIw ho nibnujg xfi sace avqi auv deto hoso.
Kal’q mew ba moma piutex id awfoapdgakb poph eot moxjup keq fti 31qc uc Ehxuhil 5594 am 74 at. Repdk, qa sioc wi ykiuju u FudasYuyeWada exhecw. Ca:
val doctorAppointment = LocalDateTime.of(2023, Month.OCTOBER, 23, 11, 0)
Tox ci koun co jujx ok avga a QilagZeraPoco imgupw. Ta di li fu dec tatg idHutu uy mupgevIjziaqrbojw. Si:
val doctorCurrentZoned = doctorAppointment.atZone(ZoneId.systemDefault())
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.