presentTime: Get the Present Time, in a Stated Timezone

View source: R/AllClass.R

presentTimeR Documentation

Get the Present Time, in a Stated Timezone

Description

Get the Present Time, in a Stated Timezone

Usage

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

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


dankelley/oce documentation built on April 18, 2024, 9:51 a.m.