Review and update the layout.

This commit is contained in:
Valentin Lorentz
2011-06-28 17:29:38 +02:00
parent 2ce465adcd
commit b17bd0fac6
63 changed files with 2384 additions and 2323 deletions

View File

@ -4,19 +4,47 @@
The Time plugin
===============
.. _command-ctime:
Relative time
-------------
ctime [<seconds since epoch>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. _command-time-ctime:
time ctime [<seconds since epoch>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the ctime for *<seconds since epoch>*, or the current ctime if
no *<seconds since epoch>* is given.
.. _command-time-time:
.. _command-seconds:
time time [<format>] [<seconds since epoch>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
seconds [<years>y] [<weeks>w] [<days>d] [<hours>h] [<minutes>m] [<seconds>s]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the current time in *<format>* format, or, if *<format>* is not
given, uses the configurable format for the current channel. If no
*<seconds since epoch>* time is given, the current time is used.
.. _command-time-elapsed:
time elapsed <seconds>
^^^^^^^^^^^^^^^^^^^^^^
Returns a pretty string that is the amount of time represented by
*<seconds>*.
time until <time string>
^^^^^^^^^^^^^^^^^^^^^^^^
Returns the number of seconds until *<time string>*.
Absolute time
-------------
.. _command-time-seconds:
time seconds [<years>y] [<weeks>w] [<days>d] [<hours>h] [<minutes>m] [<seconds>s]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the number of seconds in the number of *<years>*, *<weeks>*,
*<days>*, *<hours>*, *<minutes>*, and *<seconds>* given. An example usage is
@ -24,48 +52,20 @@ Returns the number of seconds in the number of *<years>*, *<weeks>*,
Useful for scheduling events at a given number of seconds in the
future.
.. _command-time-at:
.. _command-time:
time [<format>] [<seconds since epoch>]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Returns the current time in *<format>* format, or, if *<format>* is not
given, uses the configurable format for the current channel. If no
*<seconds since epoch>* time is given, the current time is used.
.. _command-elapsed:
elapsed <seconds>
^^^^^^^^^^^^^^^^^
Returns a pretty string that is the amount of time represented by
*<seconds>*.
.. _command-at:
at <time string>
^^^^^^^^^^^^^^^^
time at <time string>
^^^^^^^^^^^^^^^^^^^^^
Returns the number of seconds since epoch *<time string>* is.
*<time string>* can be any number of natural formats; just try something
and see if it will work.
.. _command-time-tztime:
.. _command-tztime:
tztime <region>/<city>
^^^^^^^^^^^^^^^^^^^^^^
time tztime <region>/<city>
^^^^^^^^^^^^^^^^^^^^^^^^^^^
Takes a city and its region, and returns the locale time.
.. _command-until:
until <time string>
^^^^^^^^^^^^^^^^^^^
Returns the number of seconds until *<time string>*.
.. _command-time-until: