Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

datetime::infinite(3) [centos man page]

DateTime::Infinite(3)					User Contributed Perl Documentation				     DateTime::Infinite(3)

DateTime::Infinite - Infinite past and future DateTime objects VERSION
version 1.04 SYNOPSIS
my $future = DateTime::Infinite::Future->new(); my $past = DateTime::Infinite::Past->new(); DESCRIPTION
This module provides two subclasses, "DateTime::Infinite::Future" and "DateTime::Infinite::Past". The objects are in the "floating" timezone, and this cannot be changed. BUGS
There seem to be lots of problems when dealing with infinite numbers on Win32. This may be a problem with this code, Perl, or Win32's IEEE math implementation. Either way, the module may not be well-behaved on Win32 operating systems. METHODS
The only constructor for these two classes is the "new()" method, as shown in the SYNOPSIS. This method takes no parameters. All "get" methods in this module simply return infinity, positive or negative. If the method is expected to return a string, it return the string representation of positive or negative infinity used by your system. For example, on my system calling "year()" returns a number which when printed appears either "inf" or "-inf". The object is not mutable, so the "set()", "set_time_zone()", and "truncate()" methods are all do-nothing methods that simply return the object they are called with. Obviously, the "is_finite()" method returns false and the "is_infinite()" method returns true. SEE ALSO mailing list AUTHOR
This software is Copyright (c) 2013 by Dave Rolsky. This is free software, licensed under: The Artistic License 2.0 (GPL Compatible) perl v5.16.3 2014-06-09 DateTime::Infinite(3)

Check Out this Related Man Page

DateTime::TimeZone::OffsetOnly(3)			User Contributed Perl Documentation			 DateTime::TimeZone::OffsetOnly(3)

DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset VERSION
version 1.63 SYNOPSIS
my $offset_tz = DateTime::TimeZone->new( name => '-0300' ); DESCRIPTION
This class is used to provide the DateTime::TimeZone API needed by, but with a fixed offset. An object in this class always returns the same offset as was given in its constructor, regardless of the date. USAGE
This class has the same methods as a real time zone object, but the "category()" method returns undef. DateTime::TimeZone::OffsetOnly->new ( offset => $offset ) The value given to the offset parameter must be a string such as "+0300". Strings will be converted into numbers by the "DateTime::TimeZone::offset_as_seconds()" function. $tz->offset_for_datetime( $datetime ) No matter what date is given, the offset provided to the constructor is always used. $tz->name() $tz->short_name_for_datetime() Both of these methods return the offset in string form. AUTHOR
This software is copyright (c) 2013 by Dave Rolsky. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.18.2 2013-10-28 DateTime::TimeZone::OffsetOnly(3)
Man Page

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

perl script using Win32::IEAutomation

Hi Folks, I am using Perl module Win32::IEAutomation for automating a web page which is implented using iceface. I am trying to click on a image which has the following html code: <input alt="Incidents" class="iceCmdBtn" id="_id68:_id79" name="_id68:_id79" onblur="setFocus('');"... (5 Replies)
Discussion started by: gurukottur
5 Replies

2. Shell Programming and Scripting

execution status of gotoURL in Win32::IEAutomation

Hi, I am using Win32::IEAutomation module to automate my Web based application. I am trying to prepare a report for the test cases I automated. The problem is I am unable to get the execution status of the commands gotoURL, getButton .... to know if my button click or url redirection is... (2 Replies)
Discussion started by: gurukottur
2 Replies

3. Shell Programming and Scripting

Perl Module Help

Hi All, I am using a perl module Win32::AdminMisc in my perl script. When i running in activestate perl v5.10.0 it shows folling error --- Can't locate loadable object for module Win32::AdminMisc in @INC (@INC contains: C:/Perl/site/lib C:/Perl/lib .) at Please reply. ... (7 Replies)
Discussion started by: suprcool
7 Replies

4. Programming

Is my code in an Infinite Loop?

Production C code compiled without the dash-g option is running, and seems to be in an infinite loop. Is there a way to tell? Is there a diagnostic tool that will report what objects or what lines of code or even what functions are being executed? Or is my best option to kill it with a dump? ... (5 Replies)
Discussion started by: marcus121
5 Replies

5. Programming

__read_nocancel Function Causes Infinite Loop

Does anyone know what __read_nocancel does and why it would go into an infinite loop? What I have gathered in my searches is that it pertains to server code. Yet, I'm not running this application in server mode. NOTE: There are server functions in the shared object, but the specific code... (3 Replies)
Discussion started by: marcus121
3 Replies

6. Shell Programming and Scripting

Infinite while loop

what is the difference between while:,while true and while false? (6 Replies)
Discussion started by: proactiveaditya
6 Replies

7. Shell Programming and Scripting

Perl output with negative and positive numbers

Hello, For my weather station I have made a little perl script to put the data into cacti. The next problem I have. I can only get positive numbers or negative numbers. What do I do: Though a shell scrip I call the perl script. Shell script: #!/bin/sh cat data.txt | Perl... (4 Replies)
Discussion started by: rbl-blacklight
4 Replies

8. Shell Programming and Scripting

How to generate datetime string?

Hi. I'm hoping there is a simple method where I'm able to generate a datetime string that looks like this (yyyymmddhhmm): 201106280830 The tricky part would be that I need this string to be today's datetime minus 1 year. Is there anyway to do this? (3 Replies)
Discussion started by: buechler66
3 Replies

9. Programming

C++ signals Linux

how can do this programs in c++ Program description: Infinite loop in a program starts working with 2 seconds the screen (console) "I 'm trying" to write, but it automatically after 10 seconds, the screen "Close" will terminate the execution of typing. c++ code (3 Replies)
Discussion started by: ss54
3 Replies

10. UNIX for Dummies Questions & Answers

Background job not working as expected

Hello Unix Buddies, cat #!/bin/sh while true do echo "Infinite loop" doneI am running it in the background $ ./ > /dev/null & 31634Then i do an exit or click on the cross mark to close the session. Now my expectation is that when i open up a new... (8 Replies)
Discussion started by: shellscripting
8 Replies