Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 32.292.357 Times

DateTime::Precise 1.05

  Date Added: October 27, 2010  |  Visits: 849


Report Broken Link
Printer Friendly Version

Product Homepage
Download (72 downloads)

DateTime::Precise can perform common time and date operations with additional GPS operations. SYNOPSIS use DateTime::Precise; use DateTime::Precise qw(:TimeVars); # Constructors and ways to set time. $t1 = DateTime::Precise->new; $t2 = DateTime::Precise->new(1998. 4. 3 12:13:44.054); $t3 = DateTime::Precise->new(time() - 100.23456); $t4 = DateTime::Precise->new(1998.04.24); $t1->set_localtime_from_epoch_time; $t1->set_gmtime_from_epoch_time(time + 120.987); $t1->set_from_datetime(1998.03.23 16:58:14.65); $t1->set_time(YDHMS, 1998, 177, 9, 15, 26.5); # This is the same as $d3->set_from_datetime(...) $t3->dscanf("%^Y.%M.%D %h:%m:%s", "1998.03.25 20:25:23"); if ($msg = $d1->dscanf("%~M", $input)) { print "error: $msgn"; print "Must enter a three-letter month abbrev.n"; } # Get different parts of the time. $year = $t3->year; $month = $t3->month; $day = $t3->day; $hours = $t3->hours; $minutes = $t3->minutes; $seconds = $t3->seconds; ($year, $day_of_year) = $t3->get_time(Yj); # Print times and dates. print $t2->asctime; print $t2->strftime(%T %C%n); print $t2->dprintf("%^Y.%M.%D %h:%m:%s"); # datetime print $t2->dprintf("%~w %~M %-D %h:%m:%s CST %^Y"); # ctime # Copy times. my $t4 = $t2->copy; # Set one time object to the same time as another: set $t3 equal to $t2. $t3->clone($t2); # Find the difference between two times. $secs_from_midnight = $t4 - $t1; $secs_from_midnight = $t4->diff($t1); # Add seconds, days, months, etc to time. $t1 = $t4 + 3600; # $t1 is now an hour after midnight $t1->inc_month(2); # add two months to $t1 $t1->floor_month; # set $t1 to the first of the month $t1 -= 0.25; # subtract 1/4 of a second from $t1 # Can compare and sort DateTime::Precise. print "Its late!!!" if ($t1 > $t4); @sorted = sort @birthdays; # normal comparisons work fine # Get the GPS weeks, seconds and day. $gps_week = $t1->gps_week; $gps_seconds = $t1->gps_seconds; $gps_day = $t1->gps_day; ($gps_week, $gps_seconds, $gps_day) = $t1->gps_week_seconds_day;.

Requirements: No special requirements
Platforms: Linux
Keyword: Common Time Date Operations Datetime Datetimeprecise Day Gps Libraries Month Print Programming Seconds Time Time And Date
Users rating: 0/10

License: Freeware Size: 34.82 KB
Reference  -  DailyProverb
This app quickly opens to the chapter of Proverbs that corresponds to the day of the month. On the first day of the month you'll see chapter 1, and so forth. This is completely free and contains no advertisements. The text is from the King James...
1024 KB  
Libraries  -  Real-Time Proactive Secret Sharing Library 0.1
Real-Time Proactive Secret Sharing Library is an implementation of the Shamirs secret sharing scheme and Herzbergs proactive secret sharing algorithm. Real-Time Proactive Secret Sharing Library targets the RTAI OS. It includes a port of GNU GMP...
1.3 MB  
Information Lookup  -  MB Personal Numerology 1.0
MB Personal Numerology Software is a wonderful numerology tool that lets you know your personal numerology numbers including your personal day number, personal month number and also your personal year number. Apart from telling you these personal...
Desktop Utilities  -  Clock Domain Multi Zone 1.0
3D animated multi zone desktop clock offers different skins, displays the exact time in 3 different locations in a virtual analog display, including seconds. Humorous animations and sounds accompany useful features like alarms, notes, and...
1.03 MB  
Libraries  -  Data::Faker::DateTime 0.07
Data::Faker::DateTime is a Data::Faker plugin. DATA PROVIDERS unixtime Return a unix time (seconds since the epoch) for a random time between the epoch and now. date Return a random date as a string, using a random date format (see...
20.48 KB  
Time & Clock Tools  -  Free Desktop Clock 3.0
Free Desktop Clock is the advanced replacement for standard Windows tray clock. See the time, seconds, day, date and system UpTime in different skins. 9 skins are included in the distribution. Support Longhorn clock style.
2.85 MB  
Screen Savers  -  Free Clock Screensaver 1.0
Free Clock Screensaver shows time in a large analogue clock showing day and date as well.
1.27 MB  
Screen Savers  -  Universal Countdown Screensaver 2.0
Universal Countdown Screensaver can be set to countdown to a set date and time or the same time every week or every day. You can set your 'before' message to display under the countdown and the 'after time expired' message to display after the...
953 KB  
Utilities  -  AnalogX Sarch 1.4
AnalogX Sarch produces time-based scripting by using a command executor that allows you to insert time and date values into the actual execution string. Easy to use, you simply set up a batch file, make a few calls to AnalogX Sarch, add it to the...
60 KB  
Book Collection Managers  -  Atlence FileTime Manager 3.0
Atlence FileTime Manager allows you to change the timestamp of files and folders on your computer by a simple click or by automation. The application can also monitor any change in date/time of your files and folders and notify you or perform a...
3.91 MB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB