Advertisement
Guest User

Untitled

a guest
Feb 7th, 2017
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. times("23:00:00")+ times("01:00:00")
  2. Time in days:
  3. [1] 1
  4.  
  5. 00:00:00
  6.  
  7. times("00:00:00")- times("01:00:00")
  8. [1] -0.04166667
  9.  
  10. "23:00:00"
  11.  
  12. as.POSIXct("00:00:00", format = "%H:%M:%S", tz = "UTC")
  13. [1] "2017-02-07 UTC" #Not printing time. Only dates
  14.  
  15. as.POSIXct("00:00:00", format = "%H:%M:%S", tz = "UTC") -as.POSIXct("01:00:00", format = "%H:%M:%S", tz = "UTC")
  16. Time difference of -1 hours
  17. Warning message:
  18. In 1:0:0 : numerical expression has 2 elements: only the first used
  19.  
  20. as.POSIXct("23:00:00", format = "%H:%M:%S", tz = "UTC") + as.POSIXct("01:00:00", format = "%H:%M:%S", tz = "UTC")
  21. Error in `+.POSIXt`(as.POSIXct("23:00:00", format = "%H:%M:%S", tz = "UTC"), :
  22. binary '+' is not defined for "POSIXt" objects
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement