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
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
More Decks by naoty
See All by naoty
Modular API Client
naoty
1
450
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
300
How to build gems for Rails
naoty
1
200
Qiita/Kobito vs ?
naoty
0
220
Other Decks in Programming
See All in Programming
Jetpack Compose Mechanisms
skydoves
2
380
速習iPhone Duo対応
yuukiw00w
2
960
Apple Intelligence を用いた個人情報誤送信防止、及びユーザーリクエスト体験の改善について
yukiny
0
310
Webの地図
yosuke_furukawa
PRO
6
5.1k
SalesForceを内製化!? ~ HR事業を支える顧客管理基盤のインフラを大公開 ~
oku053
0
130
re:Inventに行く前に知っておきたい現地参加のノウハウ
nokomoro3
0
370
Turning Architecture into Unit Tests in the AI Era (NSSpain XIV)
steliosf
PRO
1
130
Heart of Swift Concurrency
koher
0
1.2k
Ghostty + Neovimで作る 透明でカッコ良い開発環境
j341nono
0
150
すこし踏み込む CancellationToken
htkym
2
1.6k
JRuby: Past, Present, and Future
headius
0
220
Java 27新機能 / Java 27 new features
kishida
2
200
Featured
See All Featured
The Curse of the Amulet
leimatthew05
3
15k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
WENDY [Excerpt]
tessaabrams
14
40k
The Organizational Zoo: Understanding Human Behavior Agility Through Metaphoric Constructive Conversations (based on the works of Arthur Shelley, Ph.D)
kimpetersen
PRO
0
490
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
50
10k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
610
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2.1k
DBのスキルで生き残る技術 - AI時代におけるテーブル設計の勘所
soudai
PRO
68
58k
Color Theory Basics | Prateek | Gurzu
gurzu
1
480
GitHub's CSS Performance
jonrohan
1033
470k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Ten Tips & Tricks for a 🌱 transition
stuffmc
1
250
Transcript
/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”