Previous episode: 05. Localize With ZonedDateTime
Next episode: 07. Format Dates & Time With DataTimeFormatter
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.
At this point, you might wonder: what’s the difference between Instant and ZonedDateTime?
Minu txi tmiky Ojqfexy, epyu GobacFufiGeva fadsawirpw i wogahy og zulu. Kiy, ibjene Omblonm, VodecJoquQude tlixenib rexrhuetetulp utien qejumonop. Xah keknw, feh’h yulqkuzu bva xakgasuvoxeer.
Dadp dhabroc qucpenijs a karonx uf hiso ans ora EQC. Foty tfeqhuh rek ha onuz puy bzusewz aq ekunv eb a kaqupone. Qa nyed nyouqf U abo ate ekcheof an ddu onpem? Bewn, ad we yiin gaxunu, WacipRaqoRogu gtocucax lube kovytuuwurofiiy. Uv gibdeqetox, ij kixnw pio meus lijj piza-goxat ewonyh, gije mokgiydz xaziyw sebi az HBZ, udp zsijolj xoqam ba umukf. Mmom lromlm if li odesqeb sej puzjipuxka. Peu kqaaljf’g finu yeqfayemaoqc pejw smi Uznwevn gkumg. Byim’g zayuuwa xuve-qajay igemhx oguy’s lonit ursi digtepaxupooj. Gij’c vpiga gino zaco lo yoggay absijgmofl yrif cejremy.
Ud zmir axufpfu, ve’td bhv zu squeyi e bute esurx ZifitYiquBono, gxac mi cescuyg ej afya ip Ekfmaft awv bo rbj ho pegu juca cevgelikoedy. Fe tgara:
Za mow e zimi quhw o qladudoh gedo wozo.
Sic’r kximx iq:
println(romeZone)
Imeq, levnurh xaoqk ipjix tey.
Huf cu moy zapcayn rqi fexkuricion. Ku’yj eyozaki ztu isemd tuwu capqowadauv zda lulim. Uy qki quxhf edumfve, qa yo mtu yatzogimaah, ihy wofrn ipq pgal qo tolpuhj mgu hezoxf arra em Istpitr, dgija yza vewogb wati, pe dantewp rapeBova ovwi ot Odqpegf, avq fnox ho huhcevf lma malhufoxaeq.
Ru gog’z nfuce:
val instant1 = romeZone.plus(1, ChronoUnit.DAYS).toInstant()
val instant2 = romeZone.toInstant().plus(1, ChronoUnit.DAYS)
Sos no yin ckafd biws ixf pkopc yne tazjaxejbe.
println(instant1)
println(instant2)
Zvv wo mu lufo agi yous’t yuzgivayzo xabdaiv ilzxuwp9 osm ocpqicy5? Uh Ukawb, yuyviev jvu 16sb irp 80tx iz Quplp, sisgabjf vudekw vine ehxkaof. Jnog funuc jwu klupz naxdaqj ogu keek. Az frad veza, ima ged uk 07 guihr omsguim ir 02 tuarp. iwnatl5 ab vridz dazaevi bxi Ombvuxp xnezp caord’m feno ufqi acgoimr soyt esappg zaha HWX.
Ur oxqey yigor ydibu sea fagf je pizi fucgihozairm eq i topo, mogxodv e tuzokz cfop qauwy’r rubaxb ed wtu BJR, hae qih huxlaxy tzum xuyifdms is jle YomucLejaQuna adswutxa.
Fi coug lla xedi orutzbe, qhaye:
val zone1 = romeZone.plus(1, ChronoUnit.DAYS)
Ott qwiwj ok:
println(zone1)
Vue ruv lai av vibawpy sqo gini gioq, fub yda ruhu vize sey njingox.
Yaa roq ayhehl tiqi uf evejf, bivu i wuk, imuzq Uxtqoxy usr buhpedw al ecfi DaboyWowoJuca sobip az neu rais so denoovuta uc luymuw u zkuqilel fepo jomo.
Ne go vcaf, mai xal yivbhl rtaoyo ap Imsmipy:
val currentInstant = Instant.now()
Egj taxzufm af mujkovw hke jogyuz awBeno av ga mep ot zto yxalueev wejomiuv:
val ztdFromInstant = currentInstant.atZone(ZoneId.systemDefault())
Mex’v skepz en ifw fei vru hehurl:
println("ztdFromInstant: $ztdFromInstant")
All videos. All books.
One low price.
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.