Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Timepiece
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
naoty
May 13, 2015
Programming
3.9k
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Timepiece
naoty
May 13, 2015
Transcript
19 slides
/BPUP,BOFLP 5JNFQJFDF
None
!ٿϋε
5JNFQJFDF HJUIVCDPNOBPUZ5JNFQJFDF
None
*OUVJUJWF/4%BUF FYUFOTJPOTJO4XJGU
*OTQJSFECZ w "DUJWF4VQQPSU 3VCZ w .PNFOUKT +BWB4DSJQU
NJOVUFMBUFS J04 let components = NSDateComponents() components.minute = 1 NSCalendar.currentCalendar().dateByAddingComponents(
components, toDate: now, options: .SearchBackwards )
NJOVUFMBUFS J04 NSCalendar.currentCalendar().dateByAddingUnit( .CalendarUnitMinute, value: 1, toDate: now, options: .SearchBackwards
)
NJOVUFMBUFS 5JNFQJFDF now + 1.minute
NJOVUFMBUFS 5JNFQJFDF 1.minute.later
4QFDJpDEBUF J04 let now = NSDate() let calendar = NSCalendar.currentCalendar()
let components = calendar.components(…, fromDate: now) components.year = 2014 components.month = 8 components.day = 15 components.hour = 20 components.minute = 25 components.second = 43 calendar.dateFromComponents(components)
4QFDJpDEBUF 5JNFQJFDF NSDate.date( year: 2014, month: 8, day: 15, hour:
20, minute: 25, second: 43 )
&OEPGUIJTNPOUI J04 let now = NSDate() let calendar = NSCalendar.currentCalendar()
let lastDay = calendar.rangeOfUnit(.CalendarUnitDay, inUnit: .CalendarUnitMonth, forDate: now).length let components = calendar.components(…, fromDate: now) components.year = 2014 components.month = 8 components.day = lastDay components.hour = 20 components.minute = 25 components.second = 43 calendar.dateFromComponents(components)
&OEPGUIJTNPOUI 5JNFQJFDF now.endOfMonth
'PSNBUEBUF J04 let threeDaysAgo = … let formatter = NSDateFormatter()
formatter.dateFormat = “yyyy-MM-dd” formatter.stringFromDate(threeDaysAgo)
'PSNBUEBUF 5JNFQJFDF 3.days.ago.stringFromFormat(“yyyy-MM-dd”)
)PXJUXPSLT w *OU 5JNFQJFDFTXJGU w EBZT%VSBUJPO $BMFOEBS6OJU%BZ w
%VSBUJPOTXJGU w EBZTMBUFS/4%BUF w /4%BUF 5JNFQJFDFTXJGU w MIT/4%BUF SIT%VSBUJPO /4%BUF
*OTUBMMBUJPO pod “Timepiece”
More Decks by naoty
See All by naoty
Modular API Client
naoty
1
460
Repository pattern in Swift
naoty
3
6.5k
Contribution to Rails
naoty
0
4.5k
久々のRailsプロジェクトで導入した開発環境
naoty
2
1.2k
Report of DIYish programming activity
naoty
1
310
How to build gems for Rails
naoty
1
220
Qiita/Kobito vs ?
naoty
0
220
Other Decks in Programming
See All in Programming
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
270
Distance field of Julia set
kinakomoti321
0
330
AI時代のシニアエンジニアとは
yosuke_furukawa
PRO
15
12k
仕様駆動開発入門 (何を作るかを先に決めて渡す) | 目指せ Kiro マスター 05
inariku
PRO
3
220
数行の変更でDockerビルドを最大91%高速化~GitLab CIの実行基盤を社内40リポジトリに展開するまで~
picopico
1
230
プロジェクトコードをキレイキレイしよう!暗黙的な参照を読み解く静的解析
ostk0069
0
220
imagewebp()の向こう側: WebPはなぜ JPEG・PNGより軽いのか
yuzneri
0
150
DroidKnights 2026 Android A2UI Jetpack Compose 기반의 안전한 AI UI 렌더링 - 박제창
itsmedreamwalker
1
260
Spec-Driven Development - Why Vaadin Is the Perfect Fit
simas
PRO
0
260
将来の標準フォーマッター?ktfmtを深堀る
t45k
0
250
Enforcing Your Architecture with Unit Tests in the AI Era (Swift Connection X)
steliosf
PRO
1
190
そのデザイントークン、Flutterでも同じ見た目になりますか?
nakamizu
0
470
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Side Projects
sachag
456
43k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.2k
Stop Working from a Prison Cell
hatefulcrawdad
274
21k
Building the Perfect Custom Keyboard
takai
2
970
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
61k
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
How to make the Groovebox
asonas
2
2.6k
Practical Orchestrator
shlominoach
192
12k
How to build an LLM SEO readiness audit: a practical framework
nmsamuel
2
990
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
620
Winning Ecommerce Organic Search in an AI Era - #searchnstuff2025
aleyda
2
2.2k