diff options
author | Russ Allbery <rra@stanford.edu> | 2007-12-01 01:55:18 +0000 |
---|---|---|
committer | Russ Allbery <rra@stanford.edu> | 2007-12-01 01:55:18 +0000 |
commit | 45d8382fb2cc3f32b176675c0edb7eef5ca6aa21 (patch) | |
tree | c8e8fba8ead6ff59205536be23aeab688ebb7d02 /server/wallet-backend | |
parent | a4bedfb2e84598b3b0d66cbb2fc30417126124eb (diff) |
Expiration dates are now expressed in YYYY-MM-DD HH:MM:SS instead of
seconds since epoch and returned the same way. Timestamps are now
stored in the database as correct date and time types rather than
seconds since epoch to work properly with MySQL.
Diffstat (limited to 'server/wallet-backend')
-rwxr-xr-x | server/wallet-backend | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/wallet-backend b/server/wallet-backend index 1e067d1..c2be5e7 100755 --- a/server/wallet-backend +++ b/server/wallet-backend @@ -186,7 +186,7 @@ sub command { check_args (2, 2, [], @args); $server->destroy (@args) or failure ($server->error, @_); } elsif ($command eq 'expires') { - check_args (2, 3, [], @args); + check_args (2, 4, [], @args); if (@args > 2) { $server->expires (@args) or failure ($server->error, @_); } else { @@ -397,16 +397,16 @@ object will be usable. Destroy the object identified by <type> and <name>. With some backends, this will trigger destruction of an object in an external system as well. -=item expires <type> <name> [<expires>] +=item expires <type> <name> [<date> [<time>]] -If <expires> is not given, displays the current expiration of the object +If <date> is not given, displays the current expiration of the object identified by <type> and <name>, or C<No expiration set> if none is set. The expiration will be displayed in seconds since epoch. -If <expires> is given, sets the expiration on the object identified by -<type> and <name> to <expires>. <expires> should be given in seconds -since epoch. If <expires> is the empty string, clears the expiration of -the object. +If <date> is given, sets the expiration on the object identified by <type> +and <name> to <date> and (if given) <time>. <date> must be in the format +C<YYYY-MM-DD> and <time> in the format C<HH:MM:SS>. If <date> is the empty +string, clears the expiration of the object. Currently, the expiration of an object is not used. |