Learn R Programming

modiscloud (version 0.14)

get_date_from_POSIXct: Get the time information from a POSIXct time

Description

This function gets the year, month, day, and hourmin, from a POSIXct date (which is the # of seconds from "1970-01-01 00:00.00 UTC"). Returns a formatted date in data.frame format

Usage

get_date_from_POSIXct(POSIX_ct_date)

Arguments

POSIX_ct_date
(# of seconds from "1970-01-01 00:00.00 UTC")

Value

tdf a time-data.frame containing year, month, day, julian day, and hourmin / sec

Details

The function contains a check for multiple dates.

References

Ackerman S, Frey R, Strabala K, Liu Y, Gumley L, Baum B and Menzel P (2010). "Discriminating clear-sky from cloud with MODIS algorithm theoretical basis document (MOD35)." MODIS Cloud Mask Team, Cooperative Institute for Meteorological Satellite Studies, University of Wisconsin - Madison. .

GoldsmithMatzkeDawson2013

See Also

get_dates_from_POSIXct

make_POSIXct_date

as.POSIXct

as.POSIXlt

Examples

Run this code
# 10 million seconds from 1/1/1970
POSIX_ct_date = 10000000
get_date_from_POSIXct(POSIX_ct_date)

Run the code above in your browser using DataLab