]> Cypherpunks repositories - keks.git/commitdiff
Shorter UTC command
authorSergey Matveev <stargrave@stargrave.org>
Thu, 9 Oct 2025 19:32:11 +0000 (22:32 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Thu, 9 Oct 2025 19:41:56 +0000 (22:41 +0300)
c/lib/schema.c
go/schema/check.go
spec/schema/cmds
tcl/schema.tcl

index 7f1b93777b03a48ee5a73cf94082c108f70526fa5950df2f6a7a2f02434bb230..a1ec8ddcd71d45e5eef7e79006de357d60a58937d18d124cf56d8415f268c25f 100644 (file)
@@ -37,7 +37,7 @@ static const char CmdSchema[] = "S";
 static const char CmdTake[] = ".";
 static const char CmdPrec[] = "P";
 static const char CmdType[] = "T";
-static const char CmdUTC[] = "UTC";
+static const char CmdUTC[] = "U";
 
 static const char TypeBin[] = "B";
 static const char TypeBlob[] = "O";
index 2b47b93dd6c385037bfc54e0a6dedbeec0662398cad5e036cf19bf607fe7fe5b..f03368b1d03f987220823fcf1011ad1f4aa83fabf4fd709738e76bfdd14dd3c8 100644 (file)
@@ -41,7 +41,7 @@ const (
        CmdTake      = "."
        CmdPrec      = "P"
        CmdType      = "T"
-       CmdUTC       = "UTC"
+       CmdUTC       = "U"
        Magic        = "schema"
 )
 
index 6e750eed251754492d9c1e76696254789cd2529d0bfe5e9f1ce95d0b318370dd..e84a31fcc258dec3347c9285962f56264691ed586f015091f5ecb02e52fd9303 100644 (file)
@@ -68,7 +68,7 @@ PREC | ["P", p]
         18: up to attoseconds;
     If chosen element of float type, then TODO.
 
-UTC | ["UTC"]
+UTC | ["U"]
     Check that chosen (if it exists) element, of TAI type,
     can be converted to UTC.
 
index b8a373b6784c96870f82a196c6f5f3ec8a7b43e8b33103ebb826ac57d07b1eea..664b66c41bd676b08844e98687f7554fa75c56e1b78b475ee29133aae51563c6 100755 (executable)
@@ -28,7 +28,7 @@ proc GT {n} {subst {LIST {{STR >} {INT $n}}}}
 proc LT {n} {subst {LIST {{STR <} {INT $n}}}}
 proc SCHEMA {s} {subst {LIST {{STR S} {STR $s}}}}
 proc PREC {p} {subst {LIST {{STR P} {INT $p}}}}
-proc UTC {} {return {LIST {{STR UTC}}}}
+proc UTC {} {return {LIST {{STR U}}}}
 
 proc TAKE {k} {
     if {$k == "."} {