mongo.bson.buffer.append.time: Append a time value into a mongo.bson.buffer

Description Usage Arguments Details Value See Also Examples

View source: R/bson.R

Description

Append a date/time value into a mongo.bson.buffer.

Usage

1

Arguments

buf

(mongo.bson.buffer) The buffer object to which to append.

name

(string) The name (key) of the field appended to the buffer.

time

(integer) A time value. This may also be an object of
class "POSIXct", "POSIXlt" or "mongo.timestamp".

Details

BSON has a special field type to indicate a date/time; these are 64-bit values.

However, R has a 'standard' object of class "POSIXct" used to represent date/time values, such as that returned by Sys.time(). Internally these are a 32-bit integer number of milliseconds since midnight January 1, 1970. On January 19, 2038, 32-bit versions of the the Unix time stamp will cease to work, as it will overflow the largest value that can be held in a signed 32-bit number. At such time, many applications, including R and this driver, will need to address that issue.

Value

TRUE if successful; otherwise, FALSE if an error occured appending the data.

See Also

mongo.timestamp,
mongo.timestamp.create,
mongo.bson.buffer.append,
mongo.bson.buffer,
mongo.bson.

Examples

1
2
3

jonkatz2/rmongodb documentation built on May 19, 2019, 7:30 p.m.