From d80dd2291ff01d264dfa802b769fa19756f07821 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 5 Nov 2019 09:31:27 +0100 Subject: documentation: update Lua API docs Signed-off-by: Jo-Philipp Wich (cherry picked from commit 2ae6e3c6b3c3b65cd955bb10fb9065beebc5ffd2) --- .../api/modules/luci.http.protocol.date.html | 410 --------------------- 1 file changed, 410 deletions(-) delete mode 100644 documentation/api/modules/luci.http.protocol.date.html (limited to 'documentation/api/modules/luci.http.protocol.date.html') diff --git a/documentation/api/modules/luci.http.protocol.date.html b/documentation/api/modules/luci.http.protocol.date.html deleted file mode 100644 index d89a72302e..0000000000 --- a/documentation/api/modules/luci.http.protocol.date.html +++ /dev/null @@ -1,410 +0,0 @@ - - - - Reference - - - - - -
- -
- -
-
-
- -
- - - -
- -

Class luci.http.protocol.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