Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 316
  • Last Modified:

AWK

How do I convert Seconds into hh::mm::ss (hour minute and second) using awk?

Thanks for help.
0
d2marcelo
Asked:
d2marcelo
1 Solution
 
mish33Commented:
s=$seconds % 60
m=$seconds / 60 % 60
h=$seconds / 3600 % 24
print $h::$m::$s
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now