05-06-2013
Thanks.. Do you any idea.. how to do simply way
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In my shell script i have a variable which stores date in the format of YYYYMMDD. Is there any way to format this value to MM/DD/YYYY.
Thanks. (8 Replies)
Discussion started by: nasirgondal
8 Replies
2. Shell Programming and Scripting
Frens,
I have a logfile which has got manier things in it and somewer in that file i have a date in mm/dd/yyyy hh:mm format....
I just need to get the date and time nothing else....
i have searched in this forum for it but got only date in mm-dd-yyyy format..
but i need to search for... (10 Replies)
Discussion started by: smarty86
10 Replies
3. Shell Programming and Scripting
(Attention: Green PHP newbie !)
I have an online inquiry form, delivering a date in the form yyyy/mm/dd to my feedback form. If the content passes several checks, the form sends an e-mail to me. All works fine. I just would like to receive the date in the form dd/mm/yyyy. I tried with some code,... (6 Replies)
Discussion started by: keyboarder
6 Replies
4. Shell Programming and Scripting
The date format in the delimited file for one column '6/27/2011 12:00:00 AM' Is it possible o change it to '2011-06-27 12:00:00 AM' for all the records..
Thanks in advance..... (8 Replies)
Discussion started by: infernalhell
8 Replies
5. Shell Programming and Scripting
could you please help be on the below code ..
Requirement is when i pass the parameter(for below 2) i should get current time -2 hours in the format :wall:..
cur_dt=`$ICEBIN/sqsh -S$DSQUERY -U $BATCHID -P $PASSWD -h -C"select getdate()" | sed '2d'`
pr_dt="`$ICEBIN/sqsh -S$DSQUERY -U $BATCHID... (2 Replies)
Discussion started by: karthicss
2 Replies
6. Shell Programming and Scripting
How can I convert any user inputted date into yyyy/mm/dd ?
For example user can input date one of the following 20120121 , 2012-01-21 ,01/21/2012,01/21/2012 etc
But I need to convert any of the date entered by user into yyyy/mm/dd (2012/01/2012). Any suggestion. Thanks in advance
this is... (1 Reply)
Discussion started by: ZeroHedge
1 Replies
7. Shell Programming and Scripting
I am changing epoch times to dates. I was able to do the following:
echo "$varx" | gawk '{print strftime("%c", $0)}'
Mon Dec 31 16:26:40 2012
This changes the epoch date (which is what varx is) into localtime.
However, my problem is that I only want 12/31/2012 and not the Mon Dec 31... (2 Replies)
Discussion started by: newbie2010
2 Replies
8. Shell Programming and Scripting
Hello All,
I have a date in DD/MM/YYYY format. I am trying to convert this into unix timestamp. I have tried following:
date -d $mydate +%s
where mydate = 23/12/2016 00:00:00
I am getting following error:
date: extra operand `+%s'
Try `date --help' for more information.
... (1 Reply)
Discussion started by: angshuman
1 Replies
9. Shell Programming and Scripting
I am getting output of YYYY-MM-DD and want to change this to DD/MM/YYYY.
When am running the query in 'Todd' to_date(column_name,'DD/MM/YYYY') am getting the required o/p of DD/MM/YYYY, But when am executing the same query(Netezza) in linux server(bash) am getting the output of YYYY-MM-DD
file... (3 Replies)
Discussion started by: Roozo
3 Replies
10. UNIX for Advanced & Expert Users
How to convert mmm-yy to mm/dd/yyyy format in unix ?
example:
Jan-99 to 01/01/1999
Jan-00 to 01/01/2000
Jan-25 to 01/01/2025
Dec-99 to 01/12/1999
Dec-00 to 01/12/2000
Dec-25 to 01/12/2025
YY anything between 00-50 should be 2000-2050
YY anything between 51-99 should be 1951-1999
... (2 Replies)
Discussion started by: gksenthilkumar
2 Replies
LEARN ABOUT REDHAT
pdl::philosophy
PHILOSOPHY(1) User Contributed Perl Documentation PHILOSOPHY(1)
NAME
PDL::Philosophy -- what's behind PDL?
DESCRIPTION
This is an attempt to summarize some of the common spirit between pdl developers in order to answer the question "Why PDL"? If you are a
PDL developer and I haven't caught your favorite ideas about PDL, please let me know!
An often-asked question is: Why not settle for some of the existing systems like Matlab or IDL or GnuPlot or whatever?
Major ideas
The first tenet of our philosophy is the "free software" idea: software being free has several advantages (less bugs because more people
see the code, you can have the source and port it to your own working environment with you, ... and of course, that you don't need to pay
anything).
The second idea is a pet peeve of many: many languages like matlab are pretty well suited for their specific tasks but for a different
application, you need to change to an entirely different tool and regear yourself mentally. Not to speak about doing an application that
does two things at once... Because we use Perl, we have the power and ease of perl syntax, regular expressions, hash tables etc at our
fingertips at all times. By extending an existing language, we start from a much healthier base than languages like matlab which have
grown into existence from a very small functionality at first and expanded little by little, making things look badly planned. We stand by
the Perl sayings: "simple things should be simple but complicated things should be possible" and "There is more than one way to do it"
(TIMTOWTDI).
The third idea is interoperability: we want to be able to use PDL to drive as many tools as possible, we can connect to OpenGL or Mesa for
graphics or whatever. There isn't anything out there that's really satisfactory as a tool and can do everything we want easily. And be por-
table.
The fourth idea is related to PDL::PP and is Tuomas's personal favorite: code should only specify as little as possible redundant info. If
you find yourself writing very similar-looking code much of the time, all that code could probably be generated by a simple perl script.
The PDL C preprocessor takes this to an extreme.
Minor goals and purposes
We want speed. Optimally, it should ultimately (e.g. with the Perl compiler) be possible to compile PDL::PP subs to C and obtain the top
vectorized speeds on supercomputers. Also, we want to be able to calculate things at near top speed from inside perl, by using dataflow to
avoid memory allocation and deallocation (the overhead should ultimately be only a little over one indirect function call plus couple of
ifs per function in the pipe).
We want handy syntax. Want to do something and cannot do it easily? Tell us about it...
We want lots of goodies. A good mathematical library etc.
AUTHOR
Copyright(C) 1997 Tuomas J. Lukka (lukka@fas.harvard.edu). Redistribution in the same form is allowed but reprinting requires a permission
from the author.
perl v5.8.0 1999-12-09 PHILOSOPHY(1)