Search notes:

R function: as.POSIXlt

pdt <- as.POSIXlt(ISOdate(2016, 8, 28))

pdt$mday
# [1] 28

pdt$mon + 1
# [1] 8

pdt$year + 1900
# [1] 2016

# wday weekday. 0 = Sunday, 6 = Saturday
pdt$wday
# [1] 0

# Day of the year (0-365)
pdt$yday

# Daylight savings time flag
pdt$isdst
# [1] 0
# [1] 240
Github repository about-r, path: /functions/as.POSIXlt.R

See also

as.POSIXct
Date
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...', 1758201477, '216.73.216.150', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/R/functions/as_POSIXlt(65): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78