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
Light talk - A byte of Date
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Jose Torres Cardenas
December 07, 2016
Programming
0
110
Light talk - A byte of Date
Light talk for CocoaLima. Making a point of the difference between YYYY and yyyy.
Jose Torres Cardenas
December 07, 2016
Tweet
Share
More Decks by Jose Torres Cardenas
See All by Jose Torres Cardenas
Formalización del Proceso de Elaboración de una Arquitectura de Software
coderpug
0
270
Swift build time optimization
coderpug
1
76
Jose.pdf
coderpug
0
36
Light talk - Better Error handling
coderpug
0
65
CocoaLima - Meeting structure
coderpug
0
51
CocoaLima #2
coderpug
0
52
Server-side development with Swift
coderpug
0
93
Real Time iOS apps with PubNub
coderpug
0
330
Other Decks in Programming
See All in Programming
ZJIT: The Ruby 4 JIT Compiler / Ruby Release 30th Anniversary Party
k0kubun
1
390
それ、本当に安全? ファイルアップロードで見落としがちなセキュリティリスクと対策
penpeen
7
2.4k
高速開発のためのコード整理術
sutetotanuki
1
340
AI Schema Enrichment for your Oracle AI Database
thatjeffsmith
0
170
フロントエンド開発の勘所 -複数事業を経験して見えた判断軸の違い-
heimusu
7
2.7k
re:Invent 2025 トレンドからみる製品開発への AI Agent 活用
yoskoh
0
700
MUSUBIXとは
nahisaho
0
100
Basic Architectures
denyspoltorak
0
630
組織で育むオブザーバビリティ
ryota_hnk
0
150
【卒業研究】会話ログ分析によるユーザーごとの関心に応じた話題提案手法
momok47
0
180
責任感のあるCloudWatchアラームを設計しよう
akihisaikeda
3
130
Fragmented Architectures
denyspoltorak
0
140
Featured
See All Featured
A Tale of Four Properties
chriscoyier
162
24k
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
110
Information Architects: The Missing Link in Design Systems
soysaucechin
0
750
Google's AI Overviews - The New Search
badams
0
890
Leveraging LLMs for student feedback in introductory data science courses - posit::conf(2025)
minecr
0
130
We Have a Design System, Now What?
morganepeng
54
8k
Ruling the World: When Life Gets Gamed
codingconduct
0
130
It's Worth the Effort
3n
188
29k
Un-Boring Meetings
codingconduct
0
190
Building a Scalable Design System with Sketch
lauravandoore
463
34k
Creating an realtime collaboration tool: Agile Flush - .NET Oxford
marcduiker
35
2.4k
ラッコキーワード サービス紹介資料
rakko
1
2.1M
Transcript
A byte of NSDATE!
A byte of NSDATE!
@CoderPug
What is this about?
Awfully common mistakes when handling dates
Awfully common mistakes when handling dates
Story time
None
None
None
None
None
Let’s do this
None
YYYY week of year. ISO 8601
yyyy the actual year. duh
YYYY != yyyy
None
https://gist.github.com/CoderPug/723a1ae39e4ff121bb3386247cd4a901
#
None
None
None
None
+1 are welcome
None
References https://twitter.com/dev_jac/status/804049295074848769 http://stackoverflow.com/questions/15133549/difference-between-yyyy- and-yyyy-in-nsdateformatter/41004145#41004145 https://developer.apple.com/reference/foundation/nsdateformatter http://www.unicode.org/reports/tr35/tr35-31/tr35- dates.html#Date_Format_Patterns
THANKS!
+ & + & +
None