Search notes:

R function: strptime

strptime converts a character vector into a POSIXlt class.
strftime does the opposite.
dt_str <- "May 4 2016"

dummy <- Sys.setlocale(category = "LC_ALL", locale = "en_US.UTF-8")

#
# See ?strptime for a list of %-modifiers
#
dt_    <- strptime(dt_str, "%b %e %Y")

class(dt_)
# [1] "POSIXlt" "POSIXt"

dt_
# [1] "2016-05-04 CEST"

Github repository about-r, path: /functions/strptime.R

See also

Index to (some) R functions
The function strptime of the Python standard library datetime.

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