get_date_from_POSIXct: Get the time information from a POSIXct time

Description Usage Arguments Details Value Author(s) References See Also Examples

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

1
  get_date_from_POSIXct(POSIX_ct_date)

Arguments

POSIX_ct_date

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

Details

The function contains a check for multiple dates.

Value

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

Author(s)

Nicholas J. Matzke matzke@berkeley.edu

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. <URL: http://modis-atmos.gsfc.nasa.gov/_docs/MOD35_ATBD_Collection6.pdf>.

GoldsmithMatzkeDawson2013

See Also

get_dates_from_POSIXct

make_POSIXct_date

as.POSIXct

as.POSIXlt

Examples

1
2
3
# 10 million seconds from 1/1/1970
POSIX_ct_date = 10000000
get_date_from_POSIXct(POSIX_ct_date)

modiscloud documentation built on May 2, 2019, 5:19 p.m.