presentTime: Get the present time, in a stated timezone

Description Usage Arguments Value Examples

View source: R/AllClass.R

Description

Get the present time, in a stated timezone

Usage

1
presentTime(tz = "UTC")

Arguments

tz

String indicating the desired timezone. The default is to use UTC, which is used very commonly in oceanographic work. To get the local time, use tz="" or tz=NULL,

Value

A POSIXct()-style object holding the present time, in the indicated timezone.

Examples

1
2
presentTime() # UTC
presentTime("") # the local timezone

oce documentation built on March 28, 2021, 9:09 a.m.