User Guide

Lua Support in Wireshark
198
11.13.2. Non Method Functions
11.13.2.1. get_version()
Get Wireshark version
11.13.2.1.1. Returns
version string
11.13.2.2. format_date(timestamp)
Formats an absolute timestamp into a human readable date
11.13.2.2.1. Arguments
timestamp A timestamp value to convert.
11.13.2.2.2. Returns
A string with the formated date
11.13.2.3. format_time(timestamp)
Formats a relative timestamp in a human readable form
11.13.2.3.1. Arguments
timestamp A timestamp value to convert
11.13.2.3.2. Returns
A string with the formated time
11.13.2.4. report_failure(text)
Reports a failure to the user
11.13.2.4.1. Arguments
text Message
11.13.2.5. critical(...)
Will add a log entry with critical severity
11.13.2.5.1. Arguments
... objects to be printed
11.13.2.6. warn(...)
Will add a log entry with warn severity