Тёмный

A Complete Tutorial on the new MomentJS Library - Luxon JS 

Steve Griffith - Prof3ssorSt3v3
Подписаться 101 тыс.
Просмотров 13 тыс.
50% 1

MomentJS is a fantastic JavaScript Library for working with Times and Dates. It goes well beyond what you can do with a basic JavaScript Date( ) object.
However, moment does have limitations too.
LuxonJS is the new library from one of the team that created MomentJS. It includes all the Modern Browser capabilities for working with internationalized and localized times and dates without having to download extra JavaScript files that include the timezone and multilingual information.
Code GIST: gist.github.com/prof3ssorSt3v...
MomentJS library - momentjs.com/
LuxonJS Guide - moment.github.io/luxon/docs/m...
LuxonJS Reference - moment.github.io/luxon/docs/c...
IANA Timezone reference - www.iana.org/time-zones
Wikipedia Timezone reference - en.wikipedia.org/wiki/List_of...
MDN Intl reference - developer.mozilla.org/en-US/d...
Caniuse.com support for JS Intl Objects - caniuse.com/#search=intl

Опубликовано:

 

27 июл 2018

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 31   
@kenosabi
@kenosabi Год назад
Steve: not the hero we deserve but the one we need
@adilsonsf
@adilsonsf 2 года назад
Thanks a lot. A good explaination. Cheers.
@kllokoq
@kllokoq 3 года назад
Hi Steve, I've been developing a weather app for a week now and I found a way to to calculate current time for different cities around the world with vanilla JS. But one thing I was unable to find out is to calculate sunset/sunrise for different cities around the world, by having only the data provided by the open weather API (longitude, latitude, timezone, sunrise,sunset, dt). Does this get complicated doing it with vanilla JS? Perhaps this would be a really good tutorial for some time in the future, because it is not readily available on the net and tutorials I found on youtube don't really solve this problem.
@jame_sta
@jame_sta 5 лет назад
How would I check between a startTime and endTime ?
@hammad-ilyas
@hammad-ilyas 4 года назад
thanks.
@Corzhy0
@Corzhy0 3 года назад
Can you do 2 minutes ago, 1 hour ago etc with Luxon?
@chabinot2274
@chabinot2274 4 года назад
Hi,
@Imaginativeone_DF
@Imaginativeone_DF 3 года назад
Is there a way to make luxon.js into a JavaScript module?
@Imaginativeone_DF
@Imaginativeone_DF 3 года назад
Your awesome GIST was the fix. Shall I remove my other comments?
@LawZist
@LawZist 6 лет назад
can you do maybe tut about some react , node , npm etc?
@hackerprime9722
@hackerprime9722 2 года назад
How do you find the difference or number of days between two dates? For example 2022-05-02T
@mohamaddamad6504
@mohamaddamad6504 5 лет назад
wow the video is soooooooooooooooooooo slow.are you in love ? :) . decent video by the way but i couldn't watch it fully it was so slow.
@hisexcellencykingderp
@hisexcellencykingderp Год назад
Why would you do a tutorial without any instructions on how to download and install this? Instant downvote.
Далее
Intro to Web Workers
12:13
Просмотров 27 тыс.
Practical Coding with LocalStorage
22:31
Просмотров 6 тыс.
Редакция. News: 128-я неделя
57:38
Просмотров 1,3 млн
🎸РОК-СТРИМ без ФАНЕРЫ🤘
3:12:10
Просмотров 1,4 млн
Dates in Javascript - Moment JS, Date-Fns, Luxon
12:53
The Hidden World of requestAnimationFrame
9:22
Просмотров 31 тыс.
moment js complete exploration in 20 mins
21:31
Просмотров 2,7 тыс.
Using Promise all to Load Multiple Files
10:18
Просмотров 6 тыс.