Remove seconds from time in R

后端 未结 5 1445
灰色年华
灰色年华 2020-12-03 23:00

I am trying to remove the seconds from a column of hours in POSIXct format:

#\"2016-04-02 10:33:45 COT\" \"2016-04-02 22:19:24 COT\"
#\"2016-04-09 17:47:13 C         


        
5条回答
  •  北海茫月
    2020-12-03 23:51

    you can use round.POSIXt:

    round(Sys.time(), units = "mins")
    #"2017-01-30 11:20:00 CET"
    

提交回复
热议问题