Sponsored Content
Top Forums Shell Programming and Scripting Solved: Date: Convert m to mm Post 302847279 by mtucker6784 on Monday 26th of August 2013 03:39:23 PM
Old 08-26-2013
Aha, fair enough, thank you Rudi! That was a good spot there Smilie)
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

convert Julian date to calender date

Hi, I have script in unix which creates a julian date like 126 or 127 I want convert this julian date into calender date ex : input 127 output 07/may/2007 or 07/05/2007 or 07/05/07 rgds srikanth (6 Replies)
Discussion started by: srikanthus2002
6 Replies

2. Shell Programming and Scripting

convert date format to mysql date format in log file

I have a comma delimited log file which has the date as MM/DD/YY in the 2nd column, and HH:MM:SS in the 3rd column. I need to change the date format to YYYY-MM-DD and merge it with the the time HH:MM:SS. How will I got about this? Sample input 02/27/09,23:52:31 02/27/09,23:52:52... (3 Replies)
Discussion started by: hazno
3 Replies

3. Shell Programming and Scripting

Convert date

If I pass the value in the form YYYY/MM/DD(20100719) how to convert in the form 19\/Jul\/2010 (1 Reply)
Discussion started by: sandy1028
1 Replies

4. UNIX for Dummies Questions & Answers

Unable to convert date into no. using date -d +%s syntax in ksh shell

hi friends, I m trying to write a script which compares to dates. for this i am converting dates into no using synatx as below v2=`date | awk '{print $2,$3,$4}'` v3=`date +%s -d "$v2"` this syntax is working in bash shell ,but fails in ksh shell. please suggest on this. (12 Replies)
Discussion started by: Jcpratap
12 Replies

5. Shell Programming and Scripting

[Solved] need to convert decimal to integer

Using below command awk 'NR==FNR{A=$1;next} {sum+=($2*A)}END{OFMT="%20f";print int(sum)}' Market.txt Product.txt answer:351770174.00000 how to convert this to 351770174. when i try with below command i am getting different result. awk 'NR==FNR{A=$1;next}... (3 Replies)
Discussion started by: katakamvivek
3 Replies

6. Shell Programming and Scripting

[Solved] Replace yesterday date with today's date except from the first line

Hello, I have a file like this: 2012112920121130 12345620121130msABowwiqiq 34477420121129amABamauee e7748420121130ehABeheheei in case the content of the file has the date of yesterday within the lines containing pattern AB this should be replaced by the current date. But if I use... (3 Replies)
Discussion started by: Lilu_CK
3 Replies

7. Shell Programming and Scripting

Convert date arg to sql date

Doing a bcp load to sybase and need to convert datearg which comes in as 20130501 to 2013-05-01 which is the best way to do this (4 Replies)
Discussion started by: tasmac
4 Replies

8. Shell Programming and Scripting

[Solved] Convert Row To column

Hi Folks, I am using db2 command -> db2 list tablespace show detail Tablespace ID = 10 Name = TSCDDHLMSUM Type = Database managed space Contents = All permanent data.... (5 Replies)
Discussion started by: ckwan
5 Replies

9. Shell Programming and Scripting

Convert a date stored in a variable to epoch date

I am not able to pass date stored in a variable as an argument to date command. I get current date value for from_date and to_date #!/usr/bin/ksh set -x for s in server ; do ssh -T $s <<-EOF from_date="12-Jan-2015 12:02:09" to_date="24-Jan-2015 13:02:09" echo \$from_date echo... (7 Replies)
Discussion started by: raj48
7 Replies
DateTime::Locale::gaa(3)				User Contributed Perl Documentation				  DateTime::Locale::gaa(3)

NAME
DateTime::Locale::gaa SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'gaa' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Ga. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) Dzu Dzufo Sho Soo Sohaa Ho Hogbaa Abbreviated (format) Dzu Dzf Sho Soo Soh Ho Hog Narrow (format) 2 3 4 5 6 7 1 Wide (stand-alone) Dzu Dzufo Sho Soo Sohaa Ho Hogbaa Abbreviated (stand-alone) Dzu Dzf Sho Soo Soh Ho Hog Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) Aharabata Oflo Ochokrikri Abeibee Agbeinaa Otukwadan Maawe Manyawale Gbo Anton Alemle Afuabee Abbreviated (format) Aha Ofl Och Abe Agb Otu Maa Man Gbo Ant Ale Afu Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) Aharabata Oflo Ochokrikri Abeibee Agbeinaa Otukwadan Maawe Manyawale Gbo Anton Alemle Afuabee Abbreviated (stand-alone) Aha Ofl Och Abe Agb Otu Maa Man Gbo Ant Ale Afu Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 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 Dani Jesu KJ Abbreviated DJ KJ Narrow DJ KJ Date Formats Full 2008-02-05T18:30:30 = Dzufo, 2008 Oflo 05 1995-12-22T09:05:02 = Sohaa, 1995 Afuabee 22 -0010-09-15T04:44:23 = Ho, -10 Gbo 15 Long 2008-02-05T18:30:30 = 2008 Oflo 5 1995-12-22T09:05:02 = 1995 Afuabee 22 -0010-09-15T04:44:23 = -10 Gbo 15 Medium 2008-02-05T18:30:30 = 2008 Ofl 5 1995-12-22T09:05:02 = 1995 Afu 22 -0010-09-15T04:44:23 = -10 Gbo 15 Short 2008-02-05T18:30:30 = 08/02/05 1995-12-22T09:05:02 = 95/12/22 -0010-09-15T04:44:23 = -10/09/15 Default 2008-02-05T18:30:30 = 2008 Ofl 5 1995-12-22T09:05:02 = 1995 Afu 22 -0010-09-15T04:44:23 = -10 Gbo 15 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 = Dzufo, 2008 Oflo 05 18:30:30 UTC 1995-12-22T09:05:02 = Sohaa, 1995 Afuabee 22 09:05:02 UTC -0010-09-15T04:44:23 = Ho, -10 Gbo 15 04:44:23 UTC Long 2008-02-05T18:30:30 = 2008 Oflo 5 18:30:30 UTC 1995-12-22T09:05:02 = 1995 Afuabee 22 09:05:02 UTC -0010-09-15T04:44:23 = -10 Gbo 15 04:44:23 UTC Medium 2008-02-05T18:30:30 = 2008 Ofl 5 18:30:30 1995-12-22T09:05:02 = 1995 Afu 22 09:05:02 -0010-09-15T04:44:23 = -10 Gbo 15 04:44:23 Short 2008-02-05T18:30:30 = 08/02/05 18:30 1995-12-22T09:05:02 = 95/12/22 09:05 -0010-09-15T04:44:23 = -10/09/15 04:44 Default 2008-02-05T18:30:30 = 2008 Ofl 5 18:30:30 1995-12-22T09:05:02 = 1995 Afu 22 09:05:02 -0010-09-15T04:44:23 = -10 Gbo 15 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 Dzf 1995-12-22T09:05:02 = 22 Soh -0010-09-15T04:44:23 = 15 Ho 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 SN 1995-12-22T09:05:02 = 9:05 LB -0010-09-15T04:44:23 = 4:44 LB 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 SN 1995-12-22T09:05:02 = 9:05:02 LB -0010-09-15T04:44:23 = 4:44:23 LB 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, M-d) 2008-02-05T18:30:30 = Dzf, 2-5 1995-12-22T09:05:02 = Soh, 12-22 -0010-09-15T04:44:23 = Ho, 9-15 MMM (LLL) 2008-02-05T18:30:30 = Ofl 1995-12-22T09:05:02 = Afu -0010-09-15T04:44:23 = Gbo MMMd (MMM d) 2008-02-05T18:30:30 = Ofl 5 1995-12-22T09:05:02 = Afu 22 -0010-09-15T04:44:23 = Gbo 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = Dzf Ofl 5 1995-12-22T09:05:02 = Soh Afu 22 -0010-09-15T04:44:23 = Ho Gbo 15 MMMMd (MMMM d) 2008-02-05T18:30:30 = Oflo 5 1995-12-22T09:05:02 = Afuabee 22 -0010-09-15T04:44:23 = Gbo 15 MMMMEd (E MMMM d) 2008-02-05T18:30:30 = Dzf Oflo 5 1995-12-22T09:05:02 = Soh Afuabee 22 -0010-09-15T04:44:23 = Ho Gbo 15 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, y-M-d) 2008-02-05T18:30:30 = Dzf, 2008-2-5 1995-12-22T09:05:02 = Soh, 1995-12-22 -0010-09-15T04:44:23 = Ho, -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 Ofl 1995-12-22T09:05:02 = 1995 Afu -0010-09-15T04:44:23 = -10 Gbo yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = Dzf, 2008 Ofl 5 1995-12-22T09:05:02 = Soh, 1995 Afu 22 -0010-09-15T04:44:23 = Ho, -10 Gbo 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 Oflo 1995-12-22T09:05:02 = 1995 Afuabee -0010-09-15T04:44:23 = -10 Gbo 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 Dzu 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::gaa(3)
All times are GMT -4. The time now is 08:15 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy