I am trying to find the timestamp in R so I used the anytime function as follows:
Timestamp = anytime::anytime(paste(Date, Time))
but then I realise that the timestamp has BST and GMT. How can I get my timestamp without GMT or BST?
Thank you!
The function anytime
returns a POSIX time object that you can display in any desired format. To omit the timezone, you would simply leave it out in the format specification:
x = anytime::anytime(paste(Date, Time))
Timestamp = format( x, "%Y-%m-%d %H:%M:%S" )
See ?format.POSIXct
for more information.