to_mw: to_mw

Description Usage Arguments Details Value See Also

Description

POSIX-to-MediaWiki 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 consumable by MediaWiki - and, by extension, consumable by our MySQL databases that contain MediaWiki-derived content.

Value

a vector of MediaWiki-compatible timestamps, stored as character strings

See Also

mysql_query and global_query for querying our MySQL databases, mw_strptime for the same operation in reverse, and to_log for the equivalent operation for our Hive datastore or sampled log date/times.


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