Data work.my_data_file; Result_1 = HMS(12,3,22); Result_2 = PUT(Result_1, Time.); Run; |
What's happening in the script above?
Variable | Input | Output | Description |
---|---|---|---|
Result_1 | HMS(12,3,22) | 43402 | SAS numeric representation of 12:03:22 |
Result_2 | Put(43402, Time.) | 12:03:22 | Re-Formatted Hour, Minute and Seconds |
See also; PUT Function
See also; TODAY Function
See also; MYD Function
Kevin Regan
Have an article, idea, found a typo, want to contribute? Shoot me an email
Here
Below are links to some Udemy Data Science Courses. I've been using Udemy for a number of years now, and I've found their courses super helpful, maybe you will also.