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 31.580.896 Times

DateTime::Precise 1.05

  Date Added: October 27, 2010  |  Visits: 845


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  
Home & Leisure  -  PhotoStamper 1.2
PhotoStamper is a quick and easy way to stamp your photos with titles, GPS location, time and date, and place. Stamping these details on your photos will save you a chunk of time when it comes to finding them or learning more about them. With...
2.7 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
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  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.13.0
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