10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all - I'm completely stumped by a script I'm working on...
The short version is I have a file called 'lookup' and in it are hundreds of names (first and last). I have a script that basically allows the user to enter a name, and what I need to have happen is something like this:
Record... (8 Replies)
Discussion started by: sabster
8 Replies
2. UNIX for Advanced & Expert Users
Hi All,
Please let me know the error in the below code.
m=(0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)
M=$(date +%m)
Y=$(date +%Y)
if ; then
M=01
Y=$(($Y+1))
else
M=$M+1)printf "01-%s-%d\n" ${m} $Y
fi
Log:
+ m=(0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)
++... (4 Replies)
Discussion started by: kiranparsha
4 Replies
3. Shell Programming and Scripting
Hi Folks,
My server time is in EDT. And i am sending automated mails from that server in which i need to display the current date time as per IST (GMT+5:30). Please advice how to display the date time as per IST.
IST time leads 9:30 mins to EDT. and i wrote something like below.
... (6 Replies)
Discussion started by: Showdown
6 Replies
4. Shell Programming and Scripting
I needed some help in adding a duration (in seconds) to a start time (in hhmmss format) and a start date (in mmddyy format) in order to get an end date and end time. The concept of a leap year is also to be considered while incrementing the day. The code/ function that I have formed so far is as... (3 Replies)
Discussion started by: codehelp04
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
I want to add some hours and minutes to the current date. For example, if the current date is "July 16, 2012 15:20", i want to add 5 hours 30 minutes to "July 16, 2012 00:00" not to "July 16, 2012 15:20". Please help.
Thanks! (4 Replies)
Discussion started by: manojgarg
4 Replies
6. Shell Programming and Scripting
Hi All,
i wanted to add date and time to the file names in the same directory so lets say a file in the directory is test.txt then after running the shell script it should be test-15-11-2010.txt.
So I used the following script which works,
#!/bin/bash
thetime=`date +%Y-%m-%d--%H:%M:%S`... (7 Replies)
Discussion started by: cc_at_work
7 Replies
7. Programming
Hi All,
This Monday 15th March 2010, i have faced a weired issue with my Perl script execution, this script is scheduled to run at 1 minute past midnight on daily basis ( 00:01 EST ) generally for fetching previous business date , say if it is Monday it should give last Friday date, for Tuesday... (0 Replies)
Discussion started by: ravimishra
0 Replies
8. Shell Programming and Scripting
Hi Guys,
I have a file a.txt
Start Date/Time End Date/Time from Prob_Dura.
----------------- ----------------- ----- ------
20090525 23:58:59 20090526 00:00:00 machine1 000051
20090525 23:58:09 20090526 00:00:11 machine2 000150
The perl or shell script can:
1. remove... (4 Replies)
Discussion started by: jimmy_y
4 Replies
9. UNIX for Dummies Questions & Answers
I need to edit the file name with date and time while writing the script.
please help. (1 Reply)
Discussion started by: manish.s
1 Replies
10. UNIX for Dummies Questions & Answers
Morning all
Im hoping you can help me. We have a nice new oracle server :( and are needing to move some files around for EDI and BACS. The server runs windows but has an app called MKS toolkit installed which give unix commands. (Needed for the oracle stuff) I have had a go using dos commands... (2 Replies)
Discussion started by: ltodd2
2 Replies
DateTime::Locale::nr(3) User Contributed Perl Documentation DateTime::Locale::nr(3)
NAME
DateTime::Locale::nr
SYNOPSIS
use DateTime;
my $dt = DateTime->now( locale => 'nr' );
print $dt->month_name();
DESCRIPTION
This is the DateTime locale package for South Ndebele.
DATA
This locale inherits from the DateTime::Locale::root locale.
It contains the following data.
Days
Wide (format)
uMvulo
uLesibili
Lesithathu
uLesine
ngoLesihlanu
umGqibelo
uSonto
Abbreviated (format)
Mvu
Bil
Tha
Ne
Hla
Gqi
Son
Narrow (format)
2
3
4
5
6
7
1
Wide (stand-alone)
uMvulo
uLesibili
Lesithathu
uLesine
ngoLesihlanu
umGqibelo
uSonto
Abbreviated (stand-alone)
Mvu
Bil
Tha
Ne
Hla
Gqi
Son
Narrow (stand-alone)
2
3
4
5
6
7
1
Months
Wide (format)
Janabari
uFeberbari
uMatjhi
u-Apreli
Meyi
Juni
Julayi
Arhostosi
Septemba
Oktoba
Usinyikhaba
Disemba
Abbreviated (format)
Jan
Feb
Mat
Apr
Mey
Jun
Jul
Arh
Sep
Okt
Usi
Dis
Narrow (format)
1
2
3
4
5
6
7
8
9
10
11
12
Wide (stand-alone)
Janabari
uFeberbari
uMatjhi
u-Apreli
Meyi
Juni
Julayi
Arhostosi
Septemba
Oktoba
Usinyikhaba
Disemba
Abbreviated (stand-alone)
Jan
Feb
Mat
Apr
Mey
Jun
Jul
Arh
Sep
Okt
Usi
Dis
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
BC
AD
Abbreviated
BC
AD
Narrow
BC
AD
Date Formats
Full
2008-02-05T18:30:30 = uLesibili, 2008 uFeberbari 05
1995-12-22T09:05:02 = ngoLesihlanu, 1995 Disemba 22
-0010-09-15T04:44:23 = umGqibelo, -10 Septemba 15
Long
2008-02-05T18:30:30 = 2008 uFeberbari 5
1995-12-22T09:05:02 = 1995 Disemba 22
-0010-09-15T04:44:23 = -10 Septemba 15
Medium
2008-02-05T18:30:30 = 2008 Feb 5
1995-12-22T09:05:02 = 1995 Dis 22
-0010-09-15T04:44:23 = -10 Sep 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 Feb 5
1995-12-22T09:05:02 = 1995 Dis 22
-0010-09-15T04:44:23 = -10 Sep 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 = uLesibili, 2008 uFeberbari 05 18:30:30 UTC
1995-12-22T09:05:02 = ngoLesihlanu, 1995 Disemba 22 09:05:02 UTC
-0010-09-15T04:44:23 = umGqibelo, -10 Septemba 15 04:44:23 UTC
Long
2008-02-05T18:30:30 = 2008 uFeberbari 5 18:30:30 UTC
1995-12-22T09:05:02 = 1995 Disemba 22 09:05:02 UTC
-0010-09-15T04:44:23 = -10 Septemba 15 04:44:23 UTC
Medium
2008-02-05T18:30:30 = 2008 Feb 5 18:30:30
1995-12-22T09:05:02 = 1995 Dis 22 09:05:02
-0010-09-15T04:44:23 = -10 Sep 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 Feb 5 18:30:30
1995-12-22T09:05:02 = 1995 Dis 22 09:05:02
-0010-09-15T04:44:23 = -10 Sep 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 Bil
1995-12-22T09:05:02 = 22 Hla
-0010-09-15T04:44:23 = 15 Gqi
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, M-d)
2008-02-05T18:30:30 = Bil, 2-5
1995-12-22T09:05:02 = Hla, 12-22
-0010-09-15T04:44:23 = Gqi, 9-15
MMM (LLL)
2008-02-05T18:30:30 = Feb
1995-12-22T09:05:02 = Dis
-0010-09-15T04:44:23 = Sep
MMMd (MMM d)
2008-02-05T18:30:30 = Feb 5
1995-12-22T09:05:02 = Dis 22
-0010-09-15T04:44:23 = Sep 15
MMMEd (E MMM d)
2008-02-05T18:30:30 = Bil Feb 5
1995-12-22T09:05:02 = Hla Dis 22
-0010-09-15T04:44:23 = Gqi Sep 15
MMMMd (MMMM d)
2008-02-05T18:30:30 = uFeberbari 5
1995-12-22T09:05:02 = Disemba 22
-0010-09-15T04:44:23 = Septemba 15
MMMMEd (E MMMM d)
2008-02-05T18:30:30 = Bil uFeberbari 5
1995-12-22T09:05:02 = Hla Disemba 22
-0010-09-15T04:44:23 = Gqi Septemba 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 = Bil, 2008-2-5
1995-12-22T09:05:02 = Hla, 1995-12-22
-0010-09-15T04:44:23 = Gqi, -10-9-15
yMMM (y MMM)
2008-02-05T18:30:30 = 2008 Feb
1995-12-22T09:05:02 = 1995 Dis
-0010-09-15T04:44:23 = -10 Sep
yMMMEd (EEE, y MMM d)
2008-02-05T18:30:30 = Bil, 2008 Feb 5
1995-12-22T09:05:02 = Hla, 1995 Dis 22
-0010-09-15T04:44:23 = Gqi, -10 Sep 15
yMMMM (y MMMM)
2008-02-05T18:30:30 = 2008 uFeberbari
1995-12-22T09:05:02 = 1995 Disemba
-0010-09-15T04:44:23 = -10 Septemba
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
uMvulo
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.16.2 2013-08-25 DateTime::Locale::nr(3)