Sponsored Content
Top Forums UNIX for Dummies Questions & Answers an hour less in 24 hour system Post 302093780 by matrixmadhan on Monday 23rd of October 2006 11:55:14 AM
Old 10-23-2006
just for inf purpose only

if [ $h -lt 10 ]
then
h=0$h
fi
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

record wc -l over 24 hour period

I need to keep track of this output echo "dis chs(*)" | runmqsc | grep RUNNING | wc -l I need to record that count once an hour 24 hours a day and write to a file with the date and time it was run. Any idea on how to do this. (5 Replies)
Discussion started by: csaunders
5 Replies

2. UNIX for Dummies Questions & Answers

1 Hour less

set DAY=`date +%y%m%d` set H=`date +%H` set M=`date +%M` mailx -s "$H-Mydata" myemail@mail.com<mydata I am looking to set the current hour to have 1 hour less in the subject header: For example: let's say the system time is 8 I want to have "7-Mydata" not "8-Mydata" Can some1... (6 Replies)
Discussion started by: bobo
6 Replies

3. AIX

AIX 5.3 12 Hour System Clock

Hello Everyone, I have a Domino application running on AIX 5.3 that does time conversions worldwide. It uses the operating system time as a reference for the conversion. My problem is that I need the AIX OS clock to be a 12 hour clock (AM/PM) rather than a 24 hour clock. I have tried the date... (2 Replies)
Discussion started by: RTwitchell
2 Replies

4. Shell Programming and Scripting

help in hour grep

i have this script that checks for yesterday date and also specific hour in that ----------------------------------------------------------------- TZ=`date +%Z`+24 ;a=`date +%Y-%m-%d %k` cd logs count=0 for i in DBMaint.log do cat $i | grep $a >> file12.txt done... (0 Replies)
Discussion started by: ali560045
0 Replies

5. Linux

my server is 1 hour behind after DST

Hello, I have linux server which is one hour behind after the DST change last week. I post some information below on the settings. any helpwould be helpful since I am newbie.. $ clock Tue 04 Nov 2008 03:12:26 PM EST -0.785549 seconds $more clock Tue 04 Nov 2008 03:12:26 PM EST... (2 Replies)
Discussion started by: jbdavis02@yahoo
2 Replies

6. What is on Your Mind?

Power Hour?

I had some free time at work today so I decided to get a little practice with my shell scripts (I'm pretty new to the whole UNIX thing). I'm sure I'm not the only college student here so maybe this code will come in handy for future weekends. #!/bin/sh if then echo "No playlist... (0 Replies)
Discussion started by: thedoobieman5
0 Replies

7. Shell Programming and Scripting

Getting the last hour from a log.

I have a log like this: Jan 26 13:59:41 server2 ntpdate: step time server 91.189.94.4 offset 0.065456 sec Jan 26 13:59:41 server2 ntpd: ntpd 4.2.4p8@1.1612-o Fri Aug 6 22:49:54 UTC 2010 (1) Jan 26 13:59:41 server2 ntpd: precision = 1.000 usec Jan 26 13:59:41 server2 ntpd: ntp_io: estimated max... (2 Replies)
Discussion started by: Jotne
2 Replies

8. Shell Programming and Scripting

How to convert 24 hour time to 12 hour timing?

Hi friends, I want to convert 24 hour timing to 12 hour please help me... my data file looks like this.. 13-Nov-2011 13:27:36 15.32044 72.68502 13-Nov-2011 12:08:31 15.31291 72.69807 16-Nov-2011 01:16:54 15.30844 72.74028 15-Nov-2011 20:09:25 15.35096 ... (13 Replies)
Discussion started by: nex_asp
13 Replies

9. Shell Programming and Scripting

How to get next hour?

Hi guys I want any script to get me next hour For example Nexthour.sh 2013022823 It get me result 2013030100 Thanks a lot , I'm using Solaris 10 (5 Replies)
Discussion started by: teefa
5 Replies

10. UNIX for Advanced & Expert Users

Want to get average value for each hour

I want to get CPU average value only (not required user CPU & memory) with each hours on individual date. The sample output is below | | | User |Memory| User | Date | Time |CPU %|CPU % | % |Mem % | 03/02/2015|00:00:00| 24.56| 20.66| 89.75| 63.48|... (13 Replies)
Discussion started by: Saravanan_0074
13 Replies
CACOS(3)						   BSD Library Functions Manual 						  CACOS(3)

NAME
cacos -- complex inverse cosine function SYNOPSIS
double complex cacos(double complex z); long double complex cacosl(long double complex z); float complex cacosf(float complex z); DESCRIPTION
cacos(z) computes the inverse cosine of the complex floating-point number z, with branch cuts outside the interval [-1,1] along the real axis. cacos() returns values in a strip of the complex plane with unbounded imaginary part, and real part in the interval [0, Pi]. For all complex floating point numbers z, cacos(conj(z)) = conj(cacos(z)). SPECIAL VALUES
The conjugate symmetry of cacos() is used to abbreviate the specification of special values. cacos(+-0 + 0i) returns Pi/2 - 0i. cacos(+-0 + NaN i) returns Pi/2 + NaN i. cacos(x + inf i) returns Pi/2 - inf i, for finite x. cacos(x + NaN i) returns NaN + NaN i, for finite nonzero x. cacos(-inf + yi) returns Pi - inf i, for finite positive-signed y. cacos(inf + yi) returns 0 - inf i, for finite positive-signed y. cacos(-inf + inf i) returns 3Pi/4 - inf i. cacos(inf + inf i) returns Pi/4 - inf i. cacos(+-inf + NaN i) returns NaN + inf i. cacos(NaN + yi) returns NaN + NaN i, for finite y. cacos(NaN + inf i) returns NaN - inf i. cacos(NaN + NaN i) returns NaN + NaN i. NOTES
SEE ALSO
complex(3) STANDARDS
The cacos() function conforms to ISO/IEC 9899:2011. 4th Berkeley Distribution December 11, 2006 4th Berkeley Distribution
All times are GMT -4. The time now is 11:36 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy