get_current_timestamp {DIZtools} | R Documentation |
Quickly get the current time stamp without the need to handle format-options etc.
Description
Function to quickly get the current time stamp without need to handle format-options etc.
Usage
get_current_timestamp(no_spaces = FALSE)
Arguments
no_spaces |
Boolean. Default = 'FALSE'. Specifies whether the output can contain spaces or not. E.g. if the output is for human reading, 'no_spaces = FALSE' is a good option. As suffix for file names (e.g. logfiles), 'no_spaces = TRUE' might be a good option. |
Value
The current timestamp in always the same format. #'
Examples
get_current_timestamp(no_spaces = TRUE)
# Result: "2020-12-03-134354"
get_current_timestamp()
# this is the same like
get_current_timestamp(no_spaces = FALSE)
# Result: "03.12.2020 - 13:43 UTC"
[Package DIZtools version 1.0.1 Index]