12-24-2014
Hi
Thanks for you answer
But one small issue is there in the above command
when we passing time stamp with below values please see the result.
HTML Code:
echo "2014-12-22 00:15:13.788875" | awk -F"[ .:]" '{sub($2,$2-1)}1'
Reply is ---> 2014-12-22 -1:15:13.788875
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi,
from a shell script I am copying 2 different set of files in 2 different directories and then it ftp the same set files to another server 2 different
directories.
the dest directories where it is copying the files own by a different user
and required permission is there... (0 Replies)
Discussion started by: sankar
0 Replies
2. Programming
Hi all.
I have the following code:
#include<stdio.h>
#include<time.h>
int main()
{
struct tm tm;
time_t time = 1262322000; /*Jan, 01, 2010*/
char temp;
int i = 0;
while(i < 4)
{
memset(temp, 0, 128);
localtime_r(&time,... (2 Replies)
Discussion started by: adm1n
2 Replies
3. Shell Programming and Scripting
Hi,
I've a file in the following format
1999-APR-8 17:31:06 1500 3 45
1999-APR-8 17:31:15 1500 3 45
1999-APR-8 17:31:25 1500 3 45
1999-APR-8 17:31:30 1500 3 45
1999-APR-8 17:31:55 1500 3 45
1999-APR-8 17:32:06 1500 3 ... (1 Reply)
Discussion started by: vaibhavkorde
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
I am trying to insert a timestamp after all the file names in a folder,after the timestamp is created in the filename the file size is becoming zero bytes.
please tell me where I am doing it wrong.
I have declared the variable in starting of my script.
timestamp=`date... (1 Reply)
Discussion started by: shruthidwh
1 Replies
5. UNIX for Dummies Questions & Answers
Hi All,
I am new to unix programming. I am trying for a requirement and the requirement goes like this.....
I have a test folder. Which tracks log files. After certain time, the log file is getting overwritten by another file (randomly as the time interval is not periodic). I need to preserve... (2 Replies)
Discussion started by: mailsara
2 Replies
6. Shell Programming and Scripting
I need to be able to identify files with file timestamps greater than a given timestamp.
I am using the following solution, although it appears to compare files at the "seconds" granularity and I need it at the milliseconds. When I tested my solution, it missed files that had timestamps... (3 Replies)
Discussion started by: nkm0brm
3 Replies
7. UNIX for Dummies Questions & Answers
I have a date/timestamp problem I can't figure out. I have an Oracle table with a column DEL_TIMESTAMP defined as a NUMBER. The min and max values in the column are:
6.3417E+17
6.3470E+17
the bottom value is: 634700000000000000
Is this the time since the epoch? How does this represent... (2 Replies)
Discussion started by: djehres
2 Replies
8. Shell Programming and Scripting
Hi Friends,
I have the following logfile. Currently time in india is 07/31/2014 12:33:34 and i have the following content in logfile. I want to display only those entries which contain string 'Exception' within last 3 hours. In this case, it would be the last line only
I can get the... (12 Replies)
Discussion started by: srkmish
12 Replies
9. Shell Programming and Scripting
Hello ,
I am working on AIX. I have to convert Unix timestamp to normal timestamp. Below is the file. The Unix timestamp will always be preceded by
EFFECTIVE_TIME as first field as shown and there could be multiple EFFECTIVE_TIME in the file : 3.txt
Contents of... (6 Replies)
Discussion started by: rahul2662
6 Replies
10. Shell Programming and Scripting
So basically I have a log file and each line in this log file starts with a timestamp:
MON DD HH:MM:SS
SEP 15 07:30:01
I need to grep all the lines between last hour timestamp and current timestamp. Then these lines will be moved to a tmp file from which I will grep for particular strings. ... (1 Reply)
Discussion started by: nms
1 Replies
LEARN ABOUT DEBIAN
html::mason::psgihandler
HTML::Mason::PSGIHandler(3pm) User Contributed Perl Documentation HTML::Mason::PSGIHandler(3pm)
NAME
HTML::Mason::PSGIHandler - PSGI handler for HTML::Mason
SYNOPSIS
# app.psgi
use HTML::Mason::PSGIHandler;
my $h = HTML::Mason::PSGIHandler->new(
comp_root => "/path/to/doc_root", # required
);
my $handler = sub {
my $env = shift;
$h->handle_psgi($env);
};
DESCRIPTION
HTML::Mason::PSGIHandler is a PSGI handler for HTML::Mason. It's based on HTML::Mason::CGIHandler and allows you to process Mason templates
on any web servers that support PSGI.
SUPPORT
o Git Repository
The latest code is available from the git repository at <http://github.com/abh/HTML-Mason-PSGIHandler>.
To send patches, make a fork on github and send a pull request.
o Bugs
Please report bugs at <http://github.com/abh/HTML-Mason-PSGIHandler/issues>.
AUTHORS
Ask Bjorn Hansen <miyagawa@bulknews.net>, Ricardo Signes <rjbs@cpan.org>, Tatsuhiko Miyagawa <miyagawa@bulknews.net>.
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
CGI::PSGI Plack PSGI HTML::Mason::CGIHandler
perl v5.10.1 2010-12-19 HTML::Mason::PSGIHandler(3pm)