Get the time information from POSIXct times

Share:

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

1
  get_dates_from_POSIXct(POSIX_ct_dates)

Arguments

POSIX_ct_dates

list of POSIXct dates

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.

Value

dtf 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_date_from_POSIXct

make_POSIXct_date

Examples

1
2
POSIX_ct_dates = c(10000000, 20000000)
get_dates_from_POSIXct(POSIX_ct_dates)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.