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
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
baseline으로 마이그레이션, 리팩토링 안전하게 맡기기
fornewid
1
1.1k
テストだけで見つかる? Rubyでつくるメソッド発掘器
izawa
0
160
マルチプロダクトSaaSの アプリ一覧を速くする——複数プロダクトにまたがる「権限行脚」を減らすまで #techramen26conf
mktakuya
1
240
社内AIエージェント「Askワンバン」における コストチューニングの取り組み
t0yohei
0
180
ローカルLLMの基本と近況 2611 / Local LLM basics and recent situation 2611
kishida
3
660
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
280
Canvas 2D Context Next
petamoriken
0
230
Materialが消えた日 〜真っ白なFlutterキャンバスにRenderObjectで絵を描く〜
umigishiaoi
0
170
느린 네트워크와 저사양 디바이스 사용자를 위한 웹뷰 로딩 시간 개선기
kmkim
1
270
Skills Are the New npm [AAIF Bengaluru, Nov 2026]
shivamsaraswat
0
130
Secure Your Coding Agent Like It’s Malware (v1.5) 🇬🇧 @Code.talks 2026
richargh
0
210
将来の標準フォーマッター?ktfmtを深堀る
t45k
1
250
Featured
See All Featured
Balancing Empowerment & Direction
lara
6
1.4k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.3k
Ruling the World: When Life Gets Gamed
codingconduct
0
450
Odyssey Design
rkendrick25
PRO
3
980
How Fast Is Fast Enough? [PerfNow 2025]
tammyeverts
3
1k
Mind Mapping
helmedeiros
1
460
Testing 201, or: Great Expectations
jmmastey
46
8.4k
SEO Brein meetup: CTRL+C is not how to scale international SEO
lindahogenes
2
3k
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3.3k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
2
2.1k
Writing Fast Ruby
sferik
630
63k
Technical Leadership for Architectural Decision Making
baasie
4
660