The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

tai -- print the current TAI time.

SYNOPSIS

tai
tai --help
tai --35 --iso --gm --p=6

DESCRIPTION

Displays the current TAI time (TAI-10 by default) in any of a number of formats.

Currently supported options:

-d         Display in human-readable date/time format
-h         Describe available options
-i         Display TAI time as integer, not floating point
--0        Display TAI time instead of TAI-10 time
--35       Display TAI-35 time instead of TAI-10 time
--gm       Do not adjust for timezone when -d or --iso
--help     Same as -h
--iso      Display in ISO-8601 international standard time format
--strict   Like --iso, but implies -i
--iso-ish  Display in \"relaxed\" international standard time format
--ish      Synonym for --iso-ish
--rfc3339  Display in RFC3339 format
--neol     Do not print terminating EOL
--p=N      Show N digits of precision when displaying as float
           (default: 9)
--version  Show the version of Time::TAI::Simple library used

EXAMPLES

Display TAI-10 as a floating point number with 6 digits of precision:

$ tai --p=6
1406506285.304316

Display TAI-10 as an integer:

$ tai -i
1406506285

Display TAI-10 as a human-readable date/time, adjusted for local timezone:

$ tai -d
Mon Jul 28 13:27:57 2014

Display TAI-10 as a ISO-8601 date/time, unadjusted for timezone:

$ tai --iso --gm
2014-07-28T20:29:12.512542725Z

Display TAI-35 as a strict ISO-8601 date/time, adjusted for local timezone:

$ tai --strict --35
2014-07-28T13:28:37-0700

Display TAI-10 as an RFC3339 date/time:

$ tai --rfc3339
2014-07-28T20:29:12.512542725-07:00

Display TAI-10 as an "iso'ish" date/time:

$ tai --iso-ish
2014-07-28 20:29:12.512542725

Display TAI-10 as a low-resolution "iso'ish" date/time (most commonly used):

$ tai --iso-ish -i
2014-07-28 20:29:12

SEE ALSO

Time::TAI::Simple

AUTHOR

TTK Ciar, <ttk[at]ciar[dot]org>

COPYRIGHT AND LICENSE

Copyright 2014-2018 by TTK Ciar

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.