DateTime::Infinite(3) User Contributed Perl Documentation DateTime::Infinite(3)NAME
DateTime::Infinite - Infinite past and future DateTime objects
my $future = DateTime::Infinite::Future->new();
my $past = DateTime::Infinite::Past->new();
This module provides two DateTime.pm subclasses, "DateTime::Infinite::Future" and "DateTime::Infinite::Past".
The objects are in the "floating" timezone, and this cannot be changed.
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.
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.
email@example.com mailing list
Dave Rolsky <firstname.lastname@example.org>
COPYRIGHT AND LICENSE
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)NAME
DateTime::TimeZone::OffsetOnly - A DateTime::TimeZone object that just contains an offset
my $offset_tz = DateTime::TimeZone->new( name => '-0300' );
This class is used to provide the DateTime::TimeZone API needed by DateTime.pm, 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.
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
$tz->offset_for_datetime( $datetime )
No matter what date is given, the offset provided to the constructor is always used.
Both of these methods return the offset in string form.
Dave Rolsky <email@example.com>
COPYRIGHT AND LICENSE
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)
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)
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)
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 example.pl
... (7 Replies)
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)
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)
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.
cat data.txt | stats.pl
Perl... (4 Replies)
Hi. I'm hoping there is a simple method where I'm able to generate a datetime string that looks like this (yyyymmddhhmm):
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)
how can do this programs in c++
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)
Hello Unix Buddies,
echo "Infinite loop"
doneI am running it in the background
$ ./infinite.sh > /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)