- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- perl :: pls help conversion timestamp diff format ...
Operating System - HP-UX
1821981
Members
5502
Online
109638
Solutions
Forums
Categories
Company
Local Language
юдл
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
юдл
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2005 06:14 PM
тАО08-22-2005 06:14 PM
perl :: pls help conversion timestamp diff format to seconds
pls help with converting difference of timestamp format (dd.mm.yyyy:hh.mm.ss) to no of seconds or milliseconds.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2005 06:37 PM
тАО08-22-2005 06:37 PM
Re: perl :: pls help conversion timestamp diff format to seconds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-22-2005 06:53 PM
тАО08-22-2005 06:53 PM
Re: perl :: pls help conversion timestamp diff format to seconds
i wish to convert the following timestamp format (dd.mm.yyyy:hh.mm.ss) to give an example (01.12.2004:03:23:21) to no of seconds?
actually its like two strings in the following timestamp format would come and we need a difference of it in seconds or milliseconds?
pls help with this
actually its like two strings in the following timestamp format would come and we need a difference of it in seconds or milliseconds?
pls help with this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-23-2005 12:18 AM
тАО08-23-2005 12:18 AM
Re: perl :: pls help conversion timestamp diff format to seconds
download and install http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/DateManip-5.44.tar.gz
use Date::Manip qw(UnixDate);
($date,$time) = split(/:/, $YOURDATE);
($day,$mon,$year) = split(/\./, $date);
$time =~ s/\./:/g;
$newdatefmt = ${year}."/".${mon}."/".${day}." ".$time;
printf("New date fmt is %s\n",$newdatefmt);
$secs = &UnixDate($newdatefmt,"%s");
printf("Number of secs is %s\n",$secs);
You don't need to use milliseconds because the closest you have is "seconds".
live free or die
harry d brown jr
use Date::Manip qw(UnixDate);
($date,$time) = split(/:/, $YOURDATE);
($day,$mon,$year) = split(/\./, $date);
$time =~ s/\./:/g;
$newdatefmt = ${year}."/".${mon}."/".${day}." ".$time;
printf("New date fmt is %s\n",$newdatefmt);
$secs = &UnixDate($newdatefmt,"%s");
printf("Number of secs is %s\n",$secs);
You don't need to use milliseconds because the closest you have is "seconds".
live free or die
harry d brown jr
Live Free or Die
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP