12-28-2019
Hi Chaos_Lord...
Just an observation; you have shown figures that apparently create a true integer value on integer division...
What happens if the number of seconds is not fully divisible by 60?
Do you just want the integer division, round down and/or round up, or a floating point value?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How would you convert lets say a 1000 minutes to hours, minutes, seconds (1 Reply)
Discussion started by: Vozx
1 Replies
2. Shell Programming and Scripting
Hi all,
may i know how to display time in minutes and seconds(may be milliseconds and even smaller that ) in shell scripts.... (1 Reply)
Discussion started by: santy
1 Replies
3. HP-UX
Hi all!
I'm working on a HPUX system, and I was wondering if there is a simple way to convert a date from seconds (since 1970) to a normal date.
Thanks (2 Replies)
Discussion started by: travian
2 Replies
4. Shell Programming and Scripting
Hi experts,
I am reading two log files and passing dates as output to a txt file.
Code is given below:
echo "Start Time:" >> Report.txt
cat start.log | while read LINE1
do
echo $DATE1 >> Report.txt
done
echo "End Time:" >> Report.txt
cat end.log | while read LINE2
... (7 Replies)
Discussion started by: Sreejith_VK
7 Replies
5. Shell Programming and Scripting
Need a little help developing a ksh script. Have read through Perderabo's datecalc routine and it does not seem to fit the function I am looking for. Basically what I am trying to do is find any file (in a specific directory) that was created within the last five minutes. I am not a programming... (3 Replies)
Discussion started by: synergy_texas
3 Replies
6. Shell Programming and Scripting
I have a problem. I am working on a Call Detail Report system. Come to find out the phone switch does not report in seconds. It is a 5 digit field that reports h:mm:ss
The problem is I have 1-5 digit numbers
Ie 1 = 1 second and should be reported as 0:00:01
22 should be 0:00:22
321 should be... (5 Replies)
Discussion started by: truecall
5 Replies
7. Shell Programming and Scripting
Hello All,
I am working on script where I need to add hours,minutes or seconds in the time.Time is not the current but it could be future time.I thought I can store that time in variable and add hours.minutes or second but I am not able to add that in the time that is stores in a variable.
Time... (9 Replies)
Discussion started by: anuragpgtgerman
9 Replies
8. Shell Programming and Scripting
I have a list of time spans in seconds, and want to compute the time span
as hh:mm:nn
I am coding in bash and have coded the following. However, the results are
wrong as "%.0f" rounds the values.
Example:
ftm: 25793.5
tmspan(hrs,min,sec): 7.16 429.89 25793.50
hh: 7
mm: 10
ss:... (2 Replies)
Discussion started by: kristinu
2 Replies
9. Shell Programming and Scripting
Hello,
How can we convert date like format 20181004171050 in seconds ?
I can able to convert till date but failing for HHMMSS.
date -d "20181004" "+%s" output as 1538596800 .
But when i add hhmmss it is failing date -d "20181004172000" "+%s" result Invalid date
Kindly guide.
Regards (16 Replies)
Discussion started by: sadique.manzar
16 Replies
10. UNIX for Beginners Questions & Answers
Hi, please help with below time conversion to minutes.
one column values:
2 minutes 16 seconds 420 msec
43 seconds 750 msec
0 days 3 hours 29 minutes 58 seconds 480 msec
11 seconds 150 msec
I need output in minutes(total elapsed time in minutes) (2 Replies)
Discussion started by: ramu.badugula
2 Replies
ASTRO(7) Miscellaneous Information Manual ASTRO(7)
NAME
astro - print astronomical information
SYNOPSIS
astro [ -dlepsatokm ] [ -cn ]
DESCRIPTION
Astro reports upcoming celestial events, by default for 24 hours starting now. The options are:
d Read the starting date. A prompt gives the input format.
l Read the north latitude, west longitude, and elevation of the observation point. A prompt gives the input format. If l is missing,
the initial position is read from the file /lib/sky/here.
c Report for n (default 1) successive days.
e Report fractional overlap during eclipses.
p Print the positions of objects at the given time rather than searching for interesting conjunctions. For each, the name is followed
by the right ascension (hours, minutes, seconds), declination (degrees, minutes, seconds), azimuth (degrees), elevation (degrees),
and semidiameter (arc minutes). For the sun and moon, the magnitude is also printed.
s Print output in English words suitable for speech synthesizers.
a Include a list of artificial earth satellites for interesting events. (There are no orbital elements for the satellites, so this
option is not usable.)
t Read /T from standard input. /T is the difference between ephemeris and universal time (seconds) due to the slowing of the
earth's rotation. /T is normally calculated from an empirical formula. This option is needed only for very accurate timing of
occultations, eclipses, etc.
o Search for stellar occultations.
k Print times in local time (`kitchen clock') as described in the timezone environment variable.
m Includes a single comet in the list of objects. This is modified (in the source) to refer to an approaching comet but in steady
state usually refers to the last interesting comet (currently Levy, 1990c).
FILES
/lib/sky/estartab
ecliptic star data
/lib/sky/here
default latitude (N), longitude (W), and elevation (meters)
SOURCE
/sys/src/cmd/astro
SEE ALSO
scat(7)
BUGS
The k option reverts to GMT outside of 1970-2036.
ASTRO(7)