Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
SwiftDateを使って分、秒などを簡単に切り捨てる。
///6.0.2を使用して動作確認済み
///https://github.com/malcommac/SwiftDate/releases/tag/6.0.2
import SwiftDate
let dateTruncated = Date().dateTruncated([.second])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment