Online File

How to use this page


Rick Aster: Professional SAS Programming Secrets: Contents

Chapter 11
Program 11g
Days, hours, minutes, and seconds


*
  Professional SAS Programming Secrets
  Program 11g
  Days, hours, minutes, and seconds
*;

data _null_;
   time = -435015;
   if time < 0 then do;
      days = -datepart(-time);
      seconds = timepart(-time);
      end;
   else do;
      days = datepart(time);
      seconds = timepart(time);
      end;
   put days f4. ':' seconds tod12.3;
run;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Secrets

Contents/Online Files

Corrections