Search notes:

SAS programming, functions mdy and dhms

The combination of mdy and dhms allows to create a (date-) number from its components:
data _null_;

  year   = 2016;
  month  =    8;
  day    =   22;
  hour   =   54;
  minute =   13;
  second =    7;

  num = dhms(
     mdy(month, day, year),
     hour, minute, second
  );

  put num  is8601dt.;  /* 2016-08-24T06:13:07 */

run;
Github repository about-SAS, path: /programming/functions/mdy-dhms.sas

See also

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/Companie...', 1759408302, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Companies-Products/SAS/programming/functions/mdy-dhms(57): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78