Artifact Content
Not logged in
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Artifact 01bac40a65fc228d78bbc74d210eb134b6124fd8:

[comment {-*- tcl -*- doctools manpage}]
[include parts/]
[vset VERSION 1]
[manpage_begin [vset LABEL_VT_TIME_MIN] [vset MAN_SECTION] [vset VERSION]]
[include parts/]
[require try]
[require clock::iso8601]
[require cmdr::validate::common]
[require cmdr::validate::time]
[titledesc [vset TITLE_VT_TIME_MIN]]
[include parts/]

[para] This package provides the validation type
[cmd ::cmdr::validate::time::minute] which accepts timestamps with
minute precision in ISO 8601 syntax (limited to without seconds), or
as integer offset in minutes from midnight (modulo 24 hours).

[para] The internal representation is the offset in minutes from
midnight for the validated input.

[para] The type has no input completion.

[para] The details of the exported standard API can be found in
[term [vset TITLE_DEV_VT]]. The chosen default is "now" to the minute.

[para] A single non-standard method is provided:

[list_begin definitions][comment {-- begin api definitions --}]
[comment {- - -- --- ----- -------- ------------- ---------------------}]
[call [cmd ::cmdr::validate::time] [method 2external] [arg offset]]

This method converts the offset in minutes from midnight of a time to
the form %H:%M and returns the conversion result as its own.

[comment {- - -- --- ----- -------- ------------- ---------------------}]
[list_end][comment {-- end api definitions --}]

[include parts/]