App-Dochazka-CLI
view release on metacpan or search on metacpan
lib/App/Dochazka/CLI/Testers.pm view on Meta::CPAN
emp=george scode=VPP-1 2015-01-02
EOF
=head2 Add a single attendance interval
Finally, we have completed all the administrative setup work necessary for
employees (or their private secretaries) to be able to start entering
attendance data.
Let's say that George spent the whole morning pushing pencils. This can be
entered into the database like so:
$ dochazka-cli -u george -p george
...
Dochazka(2016-02-03) george ACTIVE> interval 8:00-12:00 work Push pencils
Interval IID 1
["2016-02-03 08:00:00+01","2016-02-03 12:00:00+01") WORK Push pencils
The server response includes the Interval ID (IID), the full canonical
"tsrange with time zone" (see PostgreSQL documentation for details), the
( run in 2.085 seconds using v1.01-cache-2.11-cpan-a1f116cd669 )