10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file with many timestamps as in below format & example:
2015-> Year in YYYY
01-> Month in MM
30-> Day in DD
10-> Hour in HH
51-> Minute in mm
20-> Seconds in SS
This is in GMT. I want to convert all these time stamps in GMT+5:30 format..
Can... (4 Replies)
Discussion started by: ailnilanjan
2. Shell Programming and Scripting
We have written a perl script to perform the GMT to MST timestamp conversion.
Output: need the given timestamp in MT (MST/MDT)
#my $tval = '2013-12-01T05:23:19.374';
... (4 Replies)
Discussion started by: kmanivan82
3. Shell Programming and Scripting
How can i convert below two loop lines in perl
for BLOCK in /sys/block/myblock*
for BLOCK in /dev/myblock*
How i can write them in perl like
foreach( </sys/block/myblock*/queue/nr_requests> ) (5 Replies)
Discussion started by: learnbash
4. Shell Programming and Scripting
Please read the below data carefully.
I need an unix command for converting unix timestamp to Epoch timestamp.
I need to daily convert this today's unix(UTC) time to epoch time, so i am thinking to make a shellscript for this.
Please help me for this by providing... (3 Replies)
Discussion started by: aish11
Can anyone provide me with a ksh or bash script which will accept a timestamp (format is YYYY-MM-DD-HH24.Mi.Ss) and time offset (in hours). The output will be (timestamp passed - time offset passed deducted from it) in the same YYYY-MM-DD-HH24.Mi.Ss format.
Basically I am trying to convert the... (1 Reply)
Discussion started by: shibajighosh
I have the following code:
struct tm tm;
time_t time = 1262322000; /*Jan, 01, 2010*/
int i = 0;
while(i < 4)
memset(temp, 0, 128);
localtime_r(&time,... (2 Replies)
Discussion started by: adm1n
7. Shell Programming and Scripting
I have searched, read and tried, but no luck.
I have this code:
#!/bin/perl -w #-d
use POSIX qw(strftime);
my $getprpw_list="/usr/lbin/getprpw -l";
my $host = "nbsol151";
my $user = "genadmin";
my %slogint; (2 Replies)
Discussion started by: ejdv
8. Shell Programming and Scripting
i need a scrit to convert one date format to another. for example
i have three columns in a file which gets a different format, but lastly i want output
with stadard timestamp as "yyyy-mm-dd hh:mm:ss"
column1 column2 ... (2 Replies)
Discussion started by: dprakash
9. Shell Programming and Scripting
I have a file containing timestamp( Example given below). How can i get date(mmd-dd-yyyy) from it?
($> cat file1.txt
Sri (2 Replies)
Discussion started by: srilaxmi
10. Shell Programming and Scripting
i want a perl/shell script which once invoked should convert a set of EPOCH timestamps to local time ( IST..i want) .
how does it work ,i have an idea on that..but writing a perl/shell script for it is not possible for me...so i need help for the same.
my exact requirement is... (2 Replies)
Discussion started by: abhijeetkul