From e5755c2b1ddb3c4427bbfc205fd3a4ffafbddb77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Tue, 21 Jul 2015 20:26:26 +0200 Subject: [PATCH] README.md --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index efdcbc410..61ecac8c3 100644 --- a/README.md +++ b/README.md @@ -309,7 +309,10 @@ The library ships with built-in support for `Bool`, `Int`, `Int64`, `Double`, `S DateTime reads and stores dates using the format "yyyy-MM-dd HH:mm:ss.SSS", in the UTC time zone. The maximum precision is the millisecond. -*This format is not ISO-8601.* However it can be lexically compared with the format used by SQLite's CURRENT_TIMESTAMP ("yyyy-MM-dd HH:mm:ss"), which means that your ORDER BY sorts will perform well. This format is also understood by [SQLite's Date and Time Functions](https://www.sqlite.org/lang_datefunc.html). +*This format is not ISO-8601.* However it can be lexically compared with the format used by SQLite's CURRENT_TIMESTAMP ("yyyy-MM-dd HH:mm:ss"), which means that we chose the format that won't break your ORDER BY clauses. This format is also understood by [SQLite's Date and Time Functions](https://www.sqlite.org/lang_datefunc.html). + +If the format used by DateTime does not fit your needs, feel free to create your own helper type. The [implementation of DateTime](GRDB/DateTime.swift) is not difficult to adapt. + #### Usage