Search notes:

R function: as.POSIXct

# 0 seconds after 1970-01-01 in timezone UTC:
#
dt <- as.POSIXct('1970-01-01 00:00:00', format='%Y-%m-%d %H:%M:%S', tz='UTC')
as.numeric(dt)
#
# [1] 0

# 1 hours, 2 minutes and 3 seconds are 3600 + 120 + 3 seconds = 3723 seconds:
dt <- as.POSIXct('1970-01-01 01:02:03', format='%Y-%m-%d %H:%M:%S', tz='UTC')
as.numeric(dt)
#
# [1] 3723
Github repository about-r, path: /functions/as.POSIXct.R

See also

R class POSIXct, Date
as.POSIXlt
Index to (some) R functions

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1758201040, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/as_POSIXct(55): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78