Learn R Programming

modiscloud (version 0.14)

get_dates_from_POSIXct: Get the time information from POSIXct times

Description

This function, for each input date, 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_dates_from_POSIXct(POSIX_ct_dates)

Arguments

POSIX_ct_dates
list of POSIXct dates

Value

dtf data.frame containing year, month, day, julian day, and hourmin / sec

Details

The function contains a check for singe dates. This is a version of get_dates_from_POSIXct for use with a list of input POSIXct dates, rather than a single date.

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_date_from_POSIXct

make_POSIXct_date

Examples

Run this code
POSIX_ct_dates = c(10000000, 20000000)
get_dates_from_POSIXct(POSIX_ct_dates)

Run the code above in your browser using DataLab