Learn R Programming

oce (version 1.8-3)

presentTime: Get the Present Time, in a Stated Timezone

Description

Get the Present Time, in a Stated Timezone

Usage

presentTime(tz = "UTC")

Value

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

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,

Examples

Run this code
presentTime() # UTC
presentTime("") # the local timezone

Run the code above in your browser using DataLab