OpenVAS Scanner
7.0.1~git
|
Protos and data structures for ISOTIME functions used by NASL scripts. More...
#include "nasl_lex_ctxt.h"
Go to the source code of this file.
Functions | |
tree_cell * | nasl_isotime_now (lex_ctxt *lexic) |
Return the current time in ISO format. More... | |
tree_cell * | nasl_isotime_is_valid (lex_ctxt *lexic) |
Check whether an ISO time string is valid. More... | |
tree_cell * | nasl_isotime_scan (lex_ctxt *lexic) |
Convert a string into an ISO time string. More... | |
tree_cell * | nasl_isotime_print (lex_ctxt *lexic) |
Convert an SIO time string into a better readable string. More... | |
tree_cell * | nasl_isotime_add (lex_ctxt *lexic) |
Add days or seconds to an ISO time string. More... | |
Protos and data structures for ISOTIME functions used by NASL scripts.
This file contains the protos for nasl_isotime.c
Definition in file nasl_isotime.h.
Add days or seconds to an ISO time string.
This function adds days or seconds to an ISO time string and returns the resulting time string. The number of days or seconds are given using the named parameters; if none are given nothing is added; if both are given both additions are performed. This function won't work for dates before the Gregorian calendar switch.
[in] | lexic | Lexical context of the NASL interpreter. |
Definition at line 726 of file nasl_isotime.c.
References add_days_to_isotime(), add_seconds_to_isotime(), add_years_to_isotime(), alloc_typed_cell(), check_isotime(), CONST_STR, get_int_var_by_name(), get_str_var_by_num(), get_var_size_by_num(), ISOTIME_SIZE, TC::size, TC::str_val, and TC::x.
Check whether an ISO time string is valid.
[in] | lexic | Lexical context of the NASL interpreter. |
Definition at line 574 of file nasl_isotime.c.
References alloc_typed_cell(), CONST_INT, get_str_var_by_num(), get_var_size_by_num(), get_var_type_by_num(), TC::i_val, isotime_human_p(), isotime_p(), ISOTIME_SIZE, VAR2_DATA, VAR2_STRING, and TC::x.
Return the current time in ISO format.
[in] | lexic | Lexical context of the NASL interpreter. |
Definition at line 542 of file nasl_isotime.c.
References alloc_typed_cell(), CONST_STR, get_current_isotime(), TC::size, TC::str_val, and TC::x.
Convert an SIO time string into a better readable string.
[in] | lexic | Lexical context of the NASL interpreter. |
Definition at line 676 of file nasl_isotime.c.
References alloc_typed_cell(), check_isotime(), CONST_STR, get_str_var_by_num(), get_var_size_by_num(), TC::size, TC::str_val, and TC::x.
Convert a string into an ISO time string.
[in] | lexic | Lexical context of the NASL interpreter. |
Definition at line 625 of file nasl_isotime.c.
References alloc_typed_cell(), CONST_STR, get_str_var_by_num(), get_var_size_by_num(), get_var_type_by_num(), ISOTIME_SIZE, TC::size, TC::str_val, string2isotime(), VAR2_DATA, VAR2_STRING, and TC::x.