Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Perl add one minute to the given date Post 302540202 by sandeeppvk on Wednesday 20th of July 2011 03:03:40 AM
Old 07-20-2011
MySQL

Great. Thanks Radoulov
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need to capture dates between start date and end date Using perl.

Hi All, Want to get all dates and Julian week number for that date between the start date and end date. How can I achive this using perl? (To achive above functionality, I was connecting to the database from DB server. Need to execute the same script in application server, since databse... (6 Replies)
Discussion started by: Nagaraja Akkiva
6 Replies

2. UNIX for Dummies Questions & Answers

How to add an hour or a minute to a time?

Hi, The timestamp is June 06 2011 11:05AM i need 2 results. first, an hour added to it, June 06 2011 12:05AM second, a minute added to it, June 06 2011 11:06AM How can i do this? Also when it reaches 12:59, it needs to start from 1 again without giving the output as 13:00. it... (17 Replies)
Discussion started by: irudayaraj
17 Replies

3. Shell Programming and Scripting

Extract week start,end date from given date in PERL

Hi All, what i want to do in perl is i should give the date at run time .Suppose date given is 23/12/2011(mm/dd/yyyy) the perl script shold find week start date, week end date, previous week start date,end date,next week start date, end date. In this case week start date will be-:12/19/2011... (2 Replies)
Discussion started by: parthmittal2007
2 Replies

4. Shell Programming and Scripting

Count of matched pattern occurences by minute and date in a log file

Anyone knows how to use AWK to achieve the following Sun Feb 12 00:41:01-00:41:59 Success:2 Fail:2 Sun Feb 12 00:42:01-00:42:59 Success:1 Fail:2 Sun Feb 12 01:20:01-01:20:59 Success:1 Fail:2 Mon Feb 13 22:41:01-22:41:59 Success:1 Fail:1 log file: Success Success Fail Fail ... (9 Replies)
Discussion started by: timmywong
9 Replies

5. Shell Programming and Scripting

Fetch date of 7 years back from current date in Perl

$beginDate = substr(DateCalc("today", "-7Days"),0,8); This fetches the date 7 days back Can I fetch the date before 7 years from todays date in Perl using same syntax Use code tags, see PM. (3 Replies)
Discussion started by: parthmittal2007
3 Replies

6. Shell Programming and Scripting

Take minute per minute from a log awk

Hi, I've been trying to develop a script that performs the parsing of a log every 1 minute and then generating some statistics. I'm fairly new to programming and this is why I come to ask if I can lend a hand. this is my log: xxxx 16/04/2012 17:00:52 - xxxx714 - E234 - Time= 119 ms.... (8 Replies)
Discussion started by: jockx
8 Replies

7. Shell Programming and Scripting

Comparing date and check minute difference

Dear all, I'm stuck on Solaris 9 bash (I believe is quite different from Linux system) trying to find a solution. I have one file named like:120629-1750-TERZ81_AS_YTR.txt YYMMDD-HH-MM-......The script should compare the actual date with the one reported on the file name and then take an action... (4 Replies)
Discussion started by: Lord Spectre
4 Replies

8. Shell Programming and Scripting

Want to add those that have the same minute in a file

Hi All, Need your help on how i can sum up the values. I have a file that contains the count and the time. I wanted to add up all the first column having the same datestamp. Please see below. INPUT 1721 2015-12-26 00:01 1440 2015-12-26 00:02 1477 2015-12-26 00:02 411 ... (4 Replies)
Discussion started by: ernesto
4 Replies
Geo::HelmertTransform(3pm)				User Contributed Perl Documentation				Geo::HelmertTransform(3pm)

NAME
Geo::HelmertTransform VERSION
1.14 SYNOPSIS
use Geo::HelmertTransform; my ($lat, $lon, $h) = ...; # from OS map my $airy1830 = Geo::HelmertTransform::datum('Airy1830'); my $wgs84 = Geo::HelmertTransform::datum('WGS84'); ($lat, $lon, $h) = Geo::HelmertTransform::convert_datum($airy1830, $wgs84, $lat, $lon, $h); DESCRIPTION
Perform transformations between geographical coordinates in different datums. It is usual to describe geographical points in terms of their polar coordinates (latitude, longitude and altitude) referenced to a "datum ellipsoid", which is used to approximate the Earth's geoid. The latitude, longitude and altitude of a given physical point vary depending on which datum ellipsoid is in use. Unfortunately, a number of ellipsoids are in everyday use, and so it is often necessary to transform geographical coordinates between different datum ellipsoids. Two different datum ellipsoids may differ in the locations of their centers, or in their shape; and there may be an angle between their equatorial planes or the meridians relative to which longitude is measured. The Helmert Transform, which this module implements, is a linear transformation of coordinates between pairs of datum ellipsoids in the limit of small angles of deviation between them. CONVENTIONS
Latitude is expressed in degrees, positive-north; longitude in degrees, positive-east. Heights (ellipsoid) and cartesian coordinates are in meters. FUNCTIONS
rad_to_deg RADIANS Convert RADIANS to degrees. deg_to_rad DEGREES Convert DEGREES to radians. geo_to_xyz DATUM LAT LON H Return the Cartesian (X, Y, Z) coordinates for the geographical coordinates (LAT, LON, H) in the given DATUM. xyz_to_geo DATUM X Y Z Return the geographical (LAT, LON, H) coordinates for the Cartesian coordinates (X, Y, Z) in the given DATUM. This is an iterative procedure. convert_datum D1 D2 LAT LON H Given geographical coordinates (LAT, LON, H) in datum D1, return the corresponding coordinates in datum D2. This assumes that the transformations are small, and always converts via WGS84. datum NAME Return the datum of the given NAME. Currently implemented are: Airy1830 The 1830 Airy ellipsoid to which the British Ordnance Survey's National Grid is referenced. Airy1830Modified The modified 1830 Airy ellipsoid to which the Irish Grid (as used by Ordnance Survey Ireland and Ordnance Survey Northern Ireland); also known as the Ireland 1975 datum. WGS84 The global datum used for GPS. SEE ALSO
A guide to coordinate systems in Great Britain, http://www.gps.gov.uk/guidecontents.asp Making maps compatible with GPS, http://www.osni.gov.uk/downloads/Making%20maps%20GPS%20compatible.pdf AUTHOR AND COPYRIGHT
Written by Chris Lightfoot, team@mysociety.org Copyright (c) UK Citizens Online Democracy. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.12.4 2011-08-29 Geo::HelmertTransform(3pm)
All times are GMT -4. The time now is 03:26 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy