Solved

AWK

Posted on 2006-06-21
1
296 Views
Last Modified: 2010-04-17
How do I convert Seconds into hh::mm::ss (hour minute and second) using awk?

Thanks for help.
0
Comment
Question by:d2marcelo
1 Comment
 
LVL 15

Accepted Solution

by:
mish33 earned 125 total points
ID: 16956980
s=$seconds % 60
m=$seconds / 60 % 60
h=$seconds / 3600 % 24
print $h::$m::$s
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A short article about a problem I had getting the GPS LocationListener working.
A short article about problems I had with the new location API and permissions in Marshmallow
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question