Translates timestrings between formats.
More...
#include <freeradius-devel/server/base.h>
#include <freeradius-devel/server/module_rlm.h>
#include <freeradius-devel/unlang/xlat_func.h>
#include <time.h>
Go to the source code of this file.
|
static xlat_action_t | date_convert_string (TALLOC_CTX *ctx, fr_dcursor_t *out, request_t *request, const char *str, rlm_date_t const *inst) |
|
static xlat_action_t | date_encode_strftime (TALLOC_CTX *ctx, fr_dcursor_t *out, rlm_date_t const *inst, request_t *request, char const *fmt, time_t date) |
|
static int | mod_bootstrap (module_inst_ctx_t const *mctx) |
|
static xlat_action_t | xlat_date_convert (TALLOC_CTX *ctx, fr_dcursor_t *out, xlat_ctx_t const *xctx, request_t *request, fr_value_box_list_t *in) |
| Get or convert time and date. More...
|
|
Translates timestrings between formats.
- Author
- Artur Malinowski (artur.nosp@m.@wow.nosp@m..com)
- Copyright
- 2013 Artur Malinowski (artur.nosp@m.@wow.nosp@m..com)
-
1999-2018 The FreeRADIUS Server Project.
Definition in file rlm_date.c.
◆ rlm_date_t
◆ date_convert_string()
◆ date_encode_strftime()
◆ mod_bootstrap()
◆ module_config
Initial value:= {
}
static int const char * fmt
#define CONF_PARSER_TERMINATOR
#define FR_CONF_OFFSET(_name, _struct, _field)
conf_parser_t which parses a single CONF_PAIR, writing the result to a field in a struct
Definition at line 37 of file rlm_date.c.
◆ rlm_date
Initial value:= {
.common = {
.name = "date",
}
}
#define MODULE_MAGIC_INIT
Stop people using different module/library/server versions together.
static const conf_parser_t config[]
static int mod_bootstrap(module_inst_ctx_t const *mctx)
static const conf_parser_t module_config[]
Definition at line 243 of file rlm_date.c.
◆ xlat_date_convert_args
Initial value:= {
}
#define XLAT_ARG_PARSER_TERMINATOR
Definition at line 138 of file rlm_date.c.