Challenges

Trabalhar com datas e horas é um dos maiores desafios da computação

 

"Será que esse horário está sincronizado com o relógio atômico?"

Bruno Fachine

"Is this time synchronized with the atomic clock?"

 

ACRONYMS

+ Timezone(TZ)

 

+ Coordinated Universal Time (UTC)

 

+ Greenwich Mean Time (GMT)

 

+ Daylight Saving Time (DST)

 

+ International Organization for Standardization (ISO 8601)

Timezone (TZ)

Greenwich Mean Time (GMT)

Universal Time Coordinated (UTC)

Daylight Saving Time (DST)

International Organization for Standardization (ISO 8601)

"2019-04-22T20:29:50-03:00"

 HH:mm:ssZ

YYYY-MM-DD

i

m

e

one

ACRONYMS

+ (TZ)

 

+ (GMT)

 

+ (UTC)

 

+ (DST)

 

+ (ISO 8601) 

 Greenwich Mean Time

Universal Time Coordinated 

Daylight Saving Time

International Organization for Standardization

Timezone

JAVASCRIPT

+ Javascript Date

+ Glitches

+ Moment.JS

Javascript Date

LOCALIZATION

By default, moment objects are created in the local time zone.
Local time zone - it's a time zone which is set in a browser or on your node.js server.

DISPLAY

CLONE EM ADIÇÃO DE DIAS/MESES/ANOS

EM DATAS MOMENT

JAVASCRIPT

+ Javascript Date

+ Glitches

+ Moment.JS

ENVIRONMENT

+ Timezone no Server AWS

+ Docker image (Alpine)

+ Timezone no NodeJS

 

TIMEZONE NO SERVER AWS

DOCKER IMAGE (ALPINE)

TIMEZONE NO NODEJS

process.env.TZ = "America/Sao_Paulo" 
TZ="America/Sao_Paulo" node server.js

Code

Environment Variables

ENVIRONMENT

+ Timezone no Server AWS

+ Docker image (Alpine)

+ Timezone no NodeJS

 

That's all folks!

TIMESHEET - Quick talk

By Carlos Henrique

TIMESHEET - Quick talk

  • 43