fDate: Create date-time character string from year, month, hour, and...

View source: R/merra_subset.R

fDateR Documentation

Create date-time character string from year, month, hour, and timezone.

Description

Create date-time character string from year, month, hour, and timezone.

Usage

fDate(year, month, day, hour, tz = "UTC")

Arguments

year

integer, year

month

integer, month (1-12)

day

integer (1-31) or character ("last"), day of the month.

hour

integer, hour (0-23)

tz

Olson timezone code ('OlsonNames()'), "UTC" by default.

Details

A utility function to create input in format used 'get_merra2_subset'.

Examples

fDate(2010, 12, "last", 23)
fDate(2010, 1, 1, 0)
OlsonNames()
fDate(2010, 1, 1, 0, tz = "America/New_York")
fDate(2010, 1, 1, 0, tz = "Pacific/Auckland")
fDate(2010, 1, 1, 0, tz = "Asia/Kolkata")

energyRt/merra2ools documentation built on May 2, 2024, 4:53 a.m.