Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Time is a Social Construct
Search
Daniel Cousineau
August 14, 2019
Programming
1
460
Time is a Social Construct
Given at BrooklynJS, ManhattanJS, and JSConf 2019
https://www.youtube.com/watch?v=EUzPpXhFmG8
Daniel Cousineau
August 14, 2019
Tweet
Share
More Decks by Daniel Cousineau
See All by Daniel Cousineau
React @ Scale
dcousineau
0
120
Frontend Performance & You
dcousineau
0
210
Feature Flags & You
dcousineau
2
80
React+Redux @ Scale
dcousineau
1
300
Reframing The Problem - DCJS July 2016
dcousineau
0
110
YAFT
dcousineau
2
150
Queues and the beanstalkd
dcousineau
1
620
How Not Writing PHP Makes You Better At PHP
dcousineau
0
360
JavaScript for PHP Developers
dcousineau
4
650
Other Decks in Programming
See All in Programming
見えないメモリを観測する: PHP 8.4 `pg_result_memory_size()` とSQL結果のメモリ管理
kentaroutakeda
0
670
testcontainers のススメ
sgash708
1
130
暇に任せてProxmoxコンソール 作ってみました
karugamo
2
730
バグを見つけた?それAppleに直してもらおう!
uetyo
0
180
ドメインイベント増えすぎ問題
h0r15h0
2
410
これが俺の”自分戦略” プロセスを楽しんでいこう! - Developers CAREER Boost 2024
niftycorp
PRO
0
190
テストコード書いてみませんか?
onopon
2
190
生成AIでGitHubソースコード取得して仕様書を作成
shukob
0
510
return文におけるstd::moveについて
onihusube
1
1.2k
Online-Dokumentation, die hilft: Strukturen, Prozesse, Tools
ahus1
0
100
Асинхронность неизбежна: как мы проектировали сервис уведомлений
lamodatech
0
930
Haze - Real time background blurring
chrisbanes
1
520
Featured
See All Featured
The World Runs on Bad Software
bkeepers
PRO
66
11k
The Illustrated Children's Guide to Kubernetes
chrisshort
48
48k
CoffeeScript is Beautiful & I Never Want to Write Plain JavaScript Again
sstephenson
159
15k
Rails Girls Zürich Keynote
gr2m
94
13k
Unsuck your backbone
ammeep
669
57k
Making the Leap to Tech Lead
cromwellryan
133
9k
Side Projects
sachag
452
42k
Rebuilding a faster, lazier Slack
samanthasiow
79
8.7k
Code Reviewing Like a Champion
maltzj
521
39k
Testing 201, or: Great Expectations
jmmastey
41
7.1k
How GitHub (no longer) Works
holman
311
140k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
44
9.3k
Transcript
@dcousineau TIME IS A SOCIAL CONSTRUCT
@dcousineau SOCIAL CONSTRUCTS ARE GARBAGE
@dcousineau TIME IS GARBAGE
@dcousineau @dcousineau IS GARBAGE he/him
@dcousineau
@dcousineau
@dcousineau
@dcousineau
@dcousineau
@dcousineau
@dcousineau @dcousineau
@dcousineau 12pm Aug 15th, 2019
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau 12pm Aug 15th, 2019 UTC-0400
@dcousineau
@dcousineau 2019-08-15T12:00:00-0400
@dcousineau
@dcousineau
@dcousineau
@dcousineau
@dcousineau
@dcousineau
@dcousineau @dcousineau
@dcousineau
@dcousineau 2019-08-15T16:00:00Z
@dcousineau @dcousineau
@dcousineau @dcousineau
@dcousineau Daylight Savings Time @dcousineau
@dcousineau Sun, Mar 10 @ 2am to Sun, Nov 3
@ 2am
@dcousineau 2019-08-15T16:00:00Z 2019-11-04T16:00:00Z 12pm in New York 11am in New
York
@dcousineau
@dcousineau
@dcousineau Arizona is in the Mountain Timezone and does not
observe daylight savings time except in the Navajo Indian Nation.
@dcousineau
@dcousineau Standard DST
@dcousineau 2019-03-10T02:01:00-07:00 “Fun” Fact Quiz
@dcousineau 2019-03-10T02:01:00-07:00 “Fun” Fact Quiz
@dcousineau
@dcousineau @dcousineau
@dcousineau
@dcousineau @dcousineau
@dcousineau
@dcousineau @dcousineau
@dcousineau
@dcousineau
@dcousineau America/New_York EST America/Chicago CST America/Denver MST America/Phoenix MST …
@dcousineau America/Indiana/Indianapolis America/Indiana/Knox America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Tell_City America/Indiana/Vevay America/Indiana/Vincennes America/Indiana/Winamac
@dcousineau Maybe Wikipedia can help…
@dcousineau
@dcousineau
@dcousineau 1918–1961
@dcousineau 1961–1967
@dcousineau 1967–1977
@dcousineau 1977–1991
@dcousineau 1991–2006
@dcousineau 2006–March 2007
@dcousineau March 2007–November 2007
@dcousineau November 2007–Today
@dcousineau America/New_York: Dearborn & Ohio America/Chicago: Jasper, Lake, LaPorte, Newton,
Porter, Gibson, Posey, Spencer, Vanderburgh, & Warrick America/Kentucky/Louisville: Clark, Floyd, & Harrison Counties in Indiana NOT on America/Indiana/*
@dcousineau 2019-08-15T12:00:00-0400 America/New_York
@dcousineau
@dcousineau So… did we learn anything?
@dcousineau Treat time as if it is irreducibly complex.
@dcousineau Time is a question of where almost as much
as it’s when.
@dcousineau Treat UTC like it’s merely a synchronization and conversion
aid.
@dcousineau Always preserve presented offsets / timezones. Only clone &
convert into UTC if storage requires.
@dcousineau Use ISO-8601 in transit & let the browser handle
the rest. Treat it like a11y, give the browser / user control.
@dcousineau Be explicit about context with your user. If this
is confusing for you, it’s worse for them.
@dcousineau USE A LIBRARY! Especially for simple arithmetic. date-fns, moment.js,
Luxon
@dcousineau When all else fails, just move to Florida. ☀
@dcousineau fin.