Warp(3pm) User Contributed Perl Documentation Warp(3pm)NAME
Time::Warp - control over the flow of time
SYNOPSIS
use Time::Warp qw(scale to time);
to(time + 5); # 5 seconds ahead
scale(2); # make time flow twice normal
DESCRIPTION
Our external experience unfolds in 3 1/2 dimensions (time has a dimensionality of 1/2). The Time::Warp module offers developers control
over the measurement of time.
API
o to($desired_time)
The theory of relativity asserts that all physical laws are enforced relative to the observer. Since the starting point of time is
arbitrary, it is permissable to change it. This has the effect of making it appear as if time is moving forwards or backward
instanteously. For example, on some types of operating systems time starts at Wed Dec 31 19:00:00 1969 (this will likely change as we
approach 2030 and with the acceptance of 64-bit CPUs).
to(time + 60*60); # 1 hour ahead
o scale($factor)
Changes the speed at which time is progressing.
scale(scale * 2); # double the speed of time
Note that it is not possible to stop time or cause it to reverse since this is forbidden by the second law of thermodynamics.
ALSO SEE
Time::HiRes and Event.
SUPPORT
Please direct your insights or complaints to perl-loop@perl.org.
DISCLAIMER
THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THIS IS NOT A TIME MACHINE. THIS MODULE CANNOT BE USED TO VIOLATE THE SECOND LAW OF
THERMODYNAMICS.
COPYRIGHT
Copyright X 1999, 2000 Joshua Nathaniel Pritikin. All rights reserved. This program is free software; you can redistribute it and/or
modify it under the same terms as Perl itself.
perl v5.14.2 2000-08-02 Warp(3pm)
Check Out this Related Man Page
HTML::Microformats::Datatype::DateTime::Parser(3pm) User Contributed Perl Documentation HTML::Microformats::Datatype::DateTime::Parser(3pm)NAME
HTML::Microformats::Datatype::DateTime::Parser - parse ISO8601 datetimes
DESCRIPTION
This module is a moderately modified version of DateTime::Format::ISO8601.
It allows datetimes to be expressed with a somewhat looser syntax, especially support for whitespace between the date and time instead of a
"T". It also calculates the "resolution" of the datetime (e.g. is it specified to year, month, day, hour, minute, second or nanosecond
precision) which it places in $dt->{'resolution'}.
Other than that, it can be used exactly as DateTime::Format::ISO8601 can. It parses strings into normal DateTime objects.
BUGS
Please report any bugs to <http://rt.cpan.org/>.
SEE ALSO
HTML::Microformats::Datatype::DateTime, DateTime.
AUTHOR
Toby Inkster <tobyink@cpan.org>.
Based on DateTime::Format::ISO8601 by Joshua Hoblitt.
COPYRIGHT
Copyright 2003-2005 Joshua Hoblitt
Copyright 2008-2011 Toby Inkster
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
perl v5.14.2 2011-12-06 HTML::Microformats::Datatype::DateTime::Parser(3pm)
I'm trying to have a loop print out statistics every X number of seconds. How can I add a specific number of seconds to a time variable and make a comparison? Thanks ahead of time.
For example:
startTime = `date +%H%M%S`
currentTime = $startTime
executeTime = startTime + X # X is equal... (5 Replies)
Hi All,
I would like to change system time for my testing purposes. All I need is to change the system time forward/backward in seconds.
I am providing the perl code that I am using to change system time on all platforms.
---------
use strict;
use English;
my $sec; my $mday; my... (2 Replies)
Things like this are teaching me a greater appreciation for network time...
The huge gap between the speed of a satellite connection and its tiny bandwidth allowance means either being completely draconian or having to chide people to not abuse it all the time. We're somewhere inbetween, if a... (3 Replies)
So, I know how to get the current time of the day using Time::HiRes. I'd like to be able to create a specific time I can use. I'm thinking I can take a POSIX timestamp and use 0 for the microseconds to create a HiRes version of of the time:
Will this work? All I want to do is create a... (7 Replies)
Time on unix server shows 8:00a CST
Time on Windows 7 Box shows 8:00a CST
However when you access an NFS share the time stamp on the files show an hour ahead? Talking about a newly created file shows an hour ahead so at 8:00a the file will show a time stamp of 9:00a CST
the problem it... (1 Reply)
Please message me or post in this thread if anyone is interested in contributing some C, C++, or C# code for this project. Right now we have an open source C++ git project (created by someone else a few years ago) that fails when we try to compile on Ubuntu. I need someone to fix the make... (4 Replies)