]> gitweb.factorcode.org Git - factor.git/commit
calendar.*: replacing hms>timestamp and timestamp>hms with duration variants
authorBjörn Lindqvist <bjourne@gmail.com>
Wed, 4 Jan 2017 11:47:45 +0000 (12:47 +0100)
committerBjörn Lindqvist <bjourne@gmail.com>
Thu, 5 Jan 2017 11:38:05 +0000 (12:38 +0100)
commitb17590db24219f6110928a1059b144d03c120668
treec738ce1db56d9715a7fe948e11941d0ef38bf14f
parentc48319cb35a9afb91d725f667f620062efdbeb5a
calendar.*: replacing hms>timestamp and timestamp>hms with duration variants

hms>duration is better because a timestamp without a date is
invalid. This also makes it so the SQL TIME column maps to duration. Now
we can add some validation so that you aren't allowed to create invalid
timestamps.
basis/calendar/format/format-tests.factor
basis/calendar/format/format.factor
basis/calendar/parser/parser.factor
basis/db/postgresql/lib/lib.factor
basis/db/sqlite/lib/lib.factor
basis/db/sqlite/sqlite.factor
basis/db/tuples/tuples-tests.factor