From fb1da60d799c61ce86f2b829b68d617321ae0890 Mon Sep 17 00:00:00 2001 From: Heikki Hokkanen Date: Mon, 18 Feb 2013 20:05:57 +0200 Subject: [PATCH] Add section about the builtin Time plugin. --- index.txt | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/index.txt b/index.txt index 3036c93..9d33114 100644 --- a/index.txt +++ b/index.txt @@ -955,6 +955,55 @@ The [green]#Seen# plugin keeps track of last channel/nick/user activity. Most ty `seen user [channel] `: Ditto, except use a user name, disregarding what nick the said user had. +[[plugin_time]] +==== Time ==== + +The [green]#Time# plugin is an utility plugin for basic time-related tasks. Mostly useful when used in nested commands with other commands. + +---- + ctime [time at "Today is 25 of September of 2003, exactly at 10:49:41"] + Thu Sep 25 10:49:41 2003 + + time ctime 0 + Thu Jan 1 00:00:00 1970 + + time ctime + Mon Feb 18 17:27:51 2013 + + time seconds 1d 3h + 97200 + + time elapsed 97200 + 1 day, 3 hours, and 0 seconds + + time time %Y-%m-%d 0 + 1970-01-01 + + time until 2015-01-01 + 58860661 + + time elapsed [time until 2015-01-01] + 1 year, 45 weeks, 1 day, 6 hours, 10 minutes, and 38 seconds +---- + +`time at