now: now function

View source: R/util.R

nowR Documentation

now function

Description

This function returns the current system time formatted according to the provided format string.

Usage

now(format = "%Y-%m-%d %H:%M:%OS2")

Arguments

format

A string representing the desired time format. Default is "%Y-%m-%d %H:%M:%OS2".

Value

A string representing the current system time in the specified format.

Examples

now()            # e.g. "2024-06-12 16:09:32.41"
now("%H:%M:%S")  # e.g. "16:09:32"

FastRet documentation built on June 25, 2024, 5:07 p.m.