R: Get the present time, in a stated timezone

presentTime {oce} | R 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

[Package oce version 1.7-2 Index]