mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +00:00
README.md
This commit is contained in:
1 parent
de1e0cc096
commit
52659c19c0
1 file changed
+1
-2
@@ -778,8 +778,7 @@ struct DatabaseTimestamp: DatabaseValueConvertible {
|
||||
|
||||
/// Returns an instance initialized from *databaseValue*, if possible.
|
||||
static func fromDatabaseValue(databaseValue: DatabaseValue) -> DatabaseTimestamp? {
|
||||
// Double itself adopts DatabaseValueConvertible. So let's avoid
|
||||
// handling the raw DatabaseValue, and use built-in Double conversion:
|
||||
// Double itself adopts DatabaseValueConvertible:
|
||||
guard let timeInterval = Double.fromDatabaseValue(databaseValue) else {
|
||||
// No Double, no NSDate!
|
||||
return nil
|
||||
|
||||
Reference in new issue
Block a user