R/RcppExports.R

Defines functions raw_to_datetime datetime_to_raw

Documented in datetime_to_raw raw_to_datetime

# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' @title
#' datetime_to_raw
#' @description
#' Covert a datetime value, encoded as an integer, to the binary representation
#' of Windows filetime to POSIXct.
#'
#' @param x Integer representing the seconds from the epoch
#'
#' @return a raw vector of 8 bytes representing the number of 100 nanosecond
#' units since 1601-01-01.
#'
#' @details
#' \code{raw_to_datetime} takes an raw vector encoding a 64-bit unsigned integer
#' This value is the number of 100 nanoseconds since 1601-01-01.
#'
#' @export
datetime_to_raw <- function(sec_epoch) {
    .Call(`_heyexr_datetime_to_raw`, sec_epoch)
}

#' @title
#' raw_to_datetime
#' @description
#' Covert the binary representation of Windows filetime to POSIXct
#'
#' @param x a raw vector of 8 bytes representing the number of 100 nanosecond
#' units since 1601-01-01.
#'
#'
#' @details
#' \code{raw_to_datetime} takes an raw vector encoding a 64-bit unsigned integer
#' This value is the number of 100 nanoseconds since 1601-01-01.
#'
#' @export
raw_to_datetime <- function(src) {
    .Call(`_heyexr_raw_to_datetime`, src)
}
barefootbiology/heyexr documentation built on July 9, 2022, 3:35 a.m.