1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-14 18:39:03 +00:00

Move date/time functions from stdnse to datetime. See #517

This commit is contained in:
dmiller
2018-08-27 22:00:10 +00:00
parent 9c3e676871
commit 46eca7f35f
35 changed files with 282 additions and 255 deletions

View File

@@ -2402,13 +2402,13 @@ PORT STATE SERVICE
<screen>
2012-09-07T23:37:42
</screen>
The standard library function
<code>stdnse.format_timestamp</code> code exists to format times
The library function
<code>datetime.format_timestamp</code> code exists to format times
for structured output. It takes an optional time zone offset in
seconds and automatically shifts the date to be correct within
that offset.
<screen>
stdnse.format_timestamp(os.time(), 0) --> "2012-09-07T23:37:42+00:00"
datetime.format_timestamp(os.time(), 0) --> "2012-09-07T23:37:42+00:00"
</screen>
</para>
</sect3>