Sponsored Content
Top Forums Shell Programming and Scripting Calculate Date from shell script Post 302402856 by rdcwayx on Wednesday 10th of March 2010 09:13:27 PM
Old 03-10-2010
there are plenty of "Calculate Date .

Please read them first.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script calculate the hits ?!

could you please find a solution for this a complex command using pipes to Calculate the number of hits per client in Squid log file (access.log), the command should display most active hosts first. Line example 1197979501.787 1 10.1.14.62 TCP_NEGATIVE_HIT/404 1463 GET http://url The... (0 Replies)
Discussion started by: anything
0 Replies

2. Shell Programming and Scripting

calculate the date of next satureday of current date.

I want to calculate the date of next satureday of current date using shell script. Suppose, today is 27-feb-08 I want to get the date of next satureday, which means 01-mar-08, in the formate '' YYMMDD ". I do this in ksh.. Please tell me any type of command which help me out. Thanks in... (3 Replies)
Discussion started by: rinku
3 Replies

3. Shell Programming and Scripting

how to calculate netwrk from IP address and netmask using Bitwise AND in shell script

Hi, I am having two variables IP="10.150.12.1" netmask="255.255.255.0" To get network number, I know that a bitwise & will help. networkno=IP & netmask My code is #!/usr/bin/ksh ip="10.150.12.1" netmask="255.255.255.0" networkno="$ip" & "$netmask" echo $networkno I am... (7 Replies)
Discussion started by: chaitanyapn
7 Replies

4. Shell Programming and Scripting

Calculate 30/31 days from today date script

Hi Guys, I was working some time ago n was in need to calculate date 30/31 days from today including Feb (Leap yr stuff). Today date is variable depending on day of execution of script. I tried searching but was not able to get exactly what I needed....So at that I time I implemented by my own... (3 Replies)
Discussion started by: coolgoose85
3 Replies

5. Shell Programming and Scripting

Shell script to calculate the size of files

Dear all, Please help me to write a script that can calculate the size of files. For example: I have a directory which contain thousands of files. I need to know the size of files that their name begin with abc_123 Thank all!! (4 Replies)
Discussion started by: hainguyen1402
4 Replies

6. Shell Programming and Scripting

Script shell, how to calculate percentage?

hello, please can you help me. jj and kk are two numbers which are the result of an sql program. I would like to calculate the ratio jj/kk*100. I have done this: ratio=$((jj/kk * 100)) or ratio=`expr $jj \/ expr $kk) but the result is 0 What can i do? Thanks for help. (3 Replies)
Discussion started by: likeaix
3 Replies

7. Shell Programming and Scripting

Shell script to calculate difference between 2 dates

shell script to calculate difference between 2 dates (3 Replies)
Discussion started by: gredpurushottam
3 Replies

8. Shell Programming and Scripting

Shell script to calculate the max cpu usage from the main script

Hi All, I have a script which does report the cpu usuage, there are few output parameter/fields displayed from the script. My problem is I have monitor the output and decide which cpu number (column 2) has maximum value (column 6). Since the output is displayed/updated every seconds, it's very... (1 Reply)
Discussion started by: Optimus81
1 Replies

9. UNIX for Dummies Questions & Answers

Script shell calculate mean arrival request duration

hello, I have implemented this command : tshark -eth0 -T fiels -e frame.time et sip.Request-Line -z sip,stat > test2.txt the result of this command : test.txt: Aug 27, 2013 23:06:47.334270000 INVITE Aug 27, 2013 23:06:47.335045000 SIP/2.0 401 Unauthorized Aug 27, 2013... (1 Reply)
Discussion started by: Amouna
1 Replies

10. Linux

How to calculate the quarter end date according to the current date in shell script?

Hi, My question is how to calculate the quarter end date according to the current date in shell script? (2 Replies)
Discussion started by: Divya_1234
2 Replies
DateTime::Locale::ha_GH(3)				User Contributed Perl Documentation				DateTime::Locale::ha_GH(3)

NAME
DateTime::Locale::ha_GH SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'ha_GH' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Hausa Ghana. DATA
This locale inherits from the DateTime::Locale::ha_Latn_GH locale. It contains the following data. Days Wide (format) Litini Talata Laraba Alhamis Jumma'a Asabar Lahadi Abbreviated (format) Lit Tal Lar Alh Jum Asa Lah Narrow (format) L T L A J A L Wide (stand-alone) Litini Talata Laraba Alhamis Jumma'a Asabar Lahadi Abbreviated (stand-alone) Lit Tal Lar Alh Jum Asa Lah Narrow (stand-alone) L T L A J A L Months Wide (format) Janairu Fabrairu Maris Afrilu Mayu Yuni Yuli Augusta Satumba Oktoba Nuwamba Disamba Abbreviated (format) Jan Fab Mar Afr May Yun Yul Aug Sat Okt Nuw Dis Narrow (format) J F M A M Y Y A S O N D Wide (stand-alone) Janairu Fabrairu Maris Afrilu Mayu Yuni Yuli Augusta Satumba Oktoba Nuwamba Disamba Abbreviated (stand-alone) Jan Fab Mar Afr May Yun Yul Aug Sat Okt Nuw Dis Narrow (stand-alone) J F M A M Y Y A S O N D Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide Gabanin Miladi Miladi Abbreviated GM M Narrow GM M Date Formats Full 2008-02-05T18:30:30 = Talata, 5 Fabrairu, 2008 1995-12-22T09:05:02 = Jumma'a, 22 Disamba, 1995 -0010-09-15T04:44:23 = Asabar, 15 Satumba, -10 Long 2008-02-05T18:30:30 = 5 Fabrairu, 2008 1995-12-22T09:05:02 = 22 Disamba, 1995 -0010-09-15T04:44:23 = 15 Satumba, -10 Medium 2008-02-05T18:30:30 = 5 Fab, 2008 1995-12-22T09:05:02 = 22 Dis, 1995 -0010-09-15T04:44:23 = 15 Sat, -10 Short 2008-02-05T18:30:30 = 5/2/08 1995-12-22T09:05:02 = 22/12/95 -0010-09-15T04:44:23 = 15/9/-10 Default 2008-02-05T18:30:30 = 5 Fab, 2008 1995-12-22T09:05:02 = 22 Dis, 1995 -0010-09-15T04:44:23 = 15 Sat, -10 Time Formats Full 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Long 2008-02-05T18:30:30 = 18:30:30 UTC 1995-12-22T09:05:02 = 09:05:02 UTC -0010-09-15T04:44:23 = 04:44:23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 09:05 -0010-09-15T04:44:23 = 04:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 09:05:02 -0010-09-15T04:44:23 = 04:44:23 Datetime Formats Full 2008-02-05T18:30:30 = Talata, 5 Fabrairu, 2008 18:30:30 UTC 1995-12-22T09:05:02 = Jumma'a, 22 Disamba, 1995 09:05:02 UTC -0010-09-15T04:44:23 = Asabar, 15 Satumba, -10 04:44:23 UTC Long 2008-02-05T18:30:30 = 5 Fabrairu, 2008 18:30:30 UTC 1995-12-22T09:05:02 = 22 Disamba, 1995 09:05:02 UTC -0010-09-15T04:44:23 = 15 Satumba, -10 04:44:23 UTC Medium 2008-02-05T18:30:30 = 5 Fab, 2008 18:30:30 1995-12-22T09:05:02 = 22 Dis, 1995 09:05:02 -0010-09-15T04:44:23 = 15 Sat, -10 04:44:23 Short 2008-02-05T18:30:30 = 5/2/08 18:30 1995-12-22T09:05:02 = 22/12/95 09:05 -0010-09-15T04:44:23 = 15/9/-10 04:44 Default 2008-02-05T18:30:30 = 5 Fab, 2008 18:30:30 1995-12-22T09:05:02 = 22 Dis, 1995 09:05:02 -0010-09-15T04:44:23 = 15 Sat, -10 04:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 Tal 1995-12-22T09:05:02 = 22 Jum -0010-09-15T04:44:23 = 15 Asa Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 PM 1995-12-22T09:05:02 = 9:05 AM -0010-09-15T04:44:23 = 4:44 AM Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 PM 1995-12-22T09:05:02 = 9:05:02 AM -0010-09-15T04:44:23 = 4:44:23 AM M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (M-d) 2008-02-05T18:30:30 = 2-5 1995-12-22T09:05:02 = 12-22 -0010-09-15T04:44:23 = 9-15 MEd (E, d-M) 2008-02-05T18:30:30 = Tal, 5-2 1995-12-22T09:05:02 = Jum, 22-12 -0010-09-15T04:44:23 = Asa, 15-9 MMM (LLL) 2008-02-05T18:30:30 = Fab 1995-12-22T09:05:02 = Dis -0010-09-15T04:44:23 = Sat MMMd (d MMM) 2008-02-05T18:30:30 = 5 Fab 1995-12-22T09:05:02 = 22 Dis -0010-09-15T04:44:23 = 15 Sat MMMEd (E d MMM) 2008-02-05T18:30:30 = Tal 5 Fab 1995-12-22T09:05:02 = Jum 22 Dis -0010-09-15T04:44:23 = Asa 15 Sat MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 Fabrairu 1995-12-22T09:05:02 = 22 Disamba -0010-09-15T04:44:23 = 15 Satumba MMMMEd (E d MMMM) 2008-02-05T18:30:30 = Tal 5 Fabrairu 1995-12-22T09:05:02 = Jum 22 Disamba -0010-09-15T04:44:23 = Asa 15 Satumba ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, d/M/yyyy) 2008-02-05T18:30:30 = Tal, 5/2/2008 1995-12-22T09:05:02 = Jum, 22/12/1995 -0010-09-15T04:44:23 = Asa, 15/9/-010 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Fab 1995-12-22T09:05:02 = 1995 Dis -0010-09-15T04:44:23 = -10 Sat yMMMEd (EEE, d MMM y) 2008-02-05T18:30:30 = Tal, 5 Fab 2008 1995-12-22T09:05:02 = Jum, 22 Dis 1995 -0010-09-15T04:44:23 = Asa, 15 Sat -10 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Fabrairu 1995-12-22T09:05:02 = 1995 Disamba -0010-09-15T04:44:23 = -10 Satumba yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week Litini SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::ha_GH(3)
All times are GMT -4. The time now is 08:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy