to_log: to_log

Description Usage Arguments Details Value See Also

Description

POSIX-to-log timestamp conversion

Usage

1

Arguments

timestamp

a vector of POSIX timestamps, represented as an object of class POSIXct, POSIXlt or character.

Details

to_mw takes a POSIXct or POSIXlt timestamp (or a character representation of those formats) and converts it into a character string that matches our RequestLogs' timestamp format, as used in the sampled and unsampled logs.

Value

a vector of log-compatible timestamps, stored as character strings.

See Also

hive_query and sampled_logs for accessing the RequestLogs, log_strptime for the same operation in reverse, and to_mw for the equivalent operation for MediaWiki date/times.


wikimedia-research/WMUtils documentation built on May 4, 2019, 5:23 a.m.