Search notes:

SAS programming, function dhms

dmhs can be used to convert from a variable in date format to a datetime format.
The reverse, converting from a datetime format to a date format would be done with datepart.
data _null_;

   t_dhms = dhms('02jan60'd, 2, 3, 4);
   t_calc = 1*24*60*60 +
            2   *60*60 +
            3      *60 +
            4;

   put t_dhms=; /* 93784 */
   put t_calc=; /* 93784 */

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

See also

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