From baa727de93db009f90d70a80a9861758a24eae77 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 5 Nov 2019 10:27:59 +0100 Subject: docs: rename documentation folder to docs Signed-off-by: Jo-Philipp Wich --- documentation/api/modules/luci.http.date.html | 406 -------------------------- 1 file changed, 406 deletions(-) delete mode 100644 documentation/api/modules/luci.http.date.html (limited to 'documentation/api/modules/luci.http.date.html') diff --git a/documentation/api/modules/luci.http.date.html b/documentation/api/modules/luci.http.date.html deleted file mode 100644 index 1ec5beb8b7..0000000000 --- a/documentation/api/modules/luci.http.date.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - Reference - - - - - -
- -
- -
-
-
- -
- - - -
- -

Class luci.http.date

- -

- - - - - - - -

Functions

- - - - - - - - - - - - - - - - - - - - - - -
compare (d1, d2) - -Compare two dates which can either be unix epoch times or HTTP date strings.
to_http (time) - -Convert the given unix epoch time to valid HTTP date string.
to_unix (data) - -Parse given HTTP date string and convert it to unix epoch time.
tz_offset (tz) - -Return the time offset in seconds between the UTC and given time zone.
- - - - - - -
-
- - -

Functions

-
- - - -
compare (d1, d2)
-
- - -Compare two dates which can either be unix epoch times or HTTP date strings. - - - -

Parameters

-
    - -
  • - d1: The first date or epoch time to compare -
  • - -
  • - d2: The first date or epoch time to compare -
  • - -
- - - - - - -

Return values:

-
    - -
  1. -1 - if d1 is lower then d2 - -
  2. 0 - if both dates are equal - -
  3. 1 - if d1 is higher then d2 - -
- - - -
- - - - -
to_http (time)
-
- - -Convert the given unix epoch time to valid HTTP date string. - - - -

Parameters

-
    - -
  • - time: Unix epoch time -
  • - -
- - - - - - -

Return value:

-String containing the formatted date - - - -
- - - - -
to_unix (data)
-
- - -Parse given HTTP date string and convert it to unix epoch time. - - - -

Parameters

-
    - -
  • - data: String containing the date -
  • - -
- - - - - - -

Return value:

-Unix epoch time - - - -
- - - - -
tz_offset (tz)
-
- - -Return the time offset in seconds between the UTC and given time zone. - - - -

Parameters

-
    - -
  • - tz: Symbolic or numeric timezone specifier -
  • - -
- - - - - - -

Return value:

-Time offset to UTC in seconds - - - -
- - -
- - - - - -
- -
- -
-

Valid XHTML 1.0!

-
- -
- - -- cgit v1.2.3