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

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

Serving Software Downloads in 956 Categories, Downloaded 50.404.319 Times

TimePeriod 1.02

Company: Paul Boyd
Date Added: September 04, 2013  |  Visits: 293

TimePeriod

Report Broken Link
Printer Friendly Version


Product Homepage
Download (39 downloads)



TimePeriod - Python module for determining if a datetime is within a time period. This is a Python version of Perl's Time::Period module.<br /><br />Installation<br />----------------------------------------<br /><br />To install from an archive:<br /><br />$ tar zxf TimePeriod-X.Y.tar.gz<br />$ cd TimePeriod-X.Y<br />$ sudo ./setup.py install<br /><br />Usage<br />----------------------------------------<br /><br />You can use this module like this:<br /><br />>>> from TimePeriod import inPeriod<br />>>> inPeriod ("wd {th}")<br />1<br /><br />If you want to use a time other than the current time, pass a date time after the period:<br /><br />m datetime import datetime<br />>>> from TimePeriod import inPeriod<br />>>> inPeriod ("wd {th}", datetime (2007, 1, 1))<br />0<br /><br />Now we know with certainty that New Year's day 2007 was not on Thursday.<br /><br />The TimePeriod module uses the same format as Perl's Time::Period module, which is detailed here:<br /><br />http://search.cpan.org/~pryan/Period-1.20/Period.pm<br /><br />Differences from Time::Period<br />----------------------------------------<br /><br />There are a few intended differences from Time::Period:<br /><br />1) An exception will be raised for an invalid format. Time::Period returns -1.<br />2) TimePeriod uses Python's datetime object, instead of an epoch.<br />3) Years are considered to have a maximum of 366 days, not 365.

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Datetime Detailed Differences Epoch Format Import Inperiod Inperiodgtgtgt Intended Module Perl Python Quotwd Raised Thursdaythe Timeperiod Timeperiodthere
Users rating: 0/10

License: Freeware Size: 10.24 KB
USER REVIEWS
More Reviews or Write Review


TIMEPERIOD RELATED
Miscellaneous  -  Extending the 'logging' module 1.1
This script helps you in adding new format specifiers to the logging module. In this example, it's for the user name and the name of the function that logged the message.
 
Multimedia  -  Ming Library 0.3.0
Ming Library is a C library for generating SWF ("Flash") format movies, plus a set of wrappers for using the library from C and popular scripting languages like PHP, Perl, Python, and Ruby.
 
Libraries  -  DateTime::Format::Epoch::TJD 0.10
DateTime::Format::Epoch::TJD is a Perl module that can convert DateTimes to/from Truncated Julian Days. SYNOPSIS use DateTime::Format::Epoch::TJD; my $dt = DateTime::Format::Epoch::TJD->parse_datetime( 13244.5 ); # 2004-08-27T00:00:00...
17.41 KB  
Libraries  -  DateTime::Format::Epoch::RJD 0.10
DateTime::Format::Epoch::RJD is a Perl module that can convert DateTimes to/from Reduced Julian Days. SYNOPSIS use DateTime::Format::Epoch::RJD; my $dt = DateTime::Format::Epoch::RJD->parse_datetime( 53244.5 ); # 2004-08-27T00:00:00...
17.41 KB  
Libraries  -  DateTime::Format::Epoch::MJD 0.10
DateTime::Format::Epoch::MJD is a Perl module that can convert DateTimes to/from Modified Julian Days. SYNOPSIS use DateTime::Format::Epoch::MJD; my $dt = DateTime::Format::Epoch::MJD->parse_datetime( 53244 ); # 2004-08-27T00:00:00...
17.41 KB  
Libraries  -  DateTime::Format::Pg 0.15
DateTime::Format::Pg is a Perl module to parse and format PostgreSQL dates and times. SYNOPSIS use DateTime::Format::Pg; my $dt = DateTime::Format::Pg->parse_datetime( 2003-01-16 23:12:01 ); # 2003-01-16T23:12:01+0200...
19.46 KB  
Libraries  -  DateTime::Format::Strptime 1.0700
DateTime::Format::Strptime is a Perl module to parse and format strp and strf time patterns. SYNOPSIS use DateTime::Format::Strptime; my $Strp = new DateTime::Format::Strptime( pattern => %T, locale => en_AU, time_zone =>...
25.6 KB  
Libraries  -  DateTime::Calendar::Mayan 0.0601
DateTime::Calendar::Mayan is a Perl module with the Mayan Long Count, Haab, and Tzolkin calendars. SYNOPSIS use DateTime::Calendar::Mayan my $dtcm = DateTime::Calendar::Mayan->new( baktun => 12, katun => 19, tun => 10, uinal => 2, kin...
16.38 KB  
Application Add-Ins  -  Sense RTF Plugin 1.11.3
This Plugin enables Rich Text Format files to be transfered between Microsoft Word and the Sense Document Editor. Providing multilevel bullet / numbered paragraph ListStyle and heading / paragraph Style conversions, Sense may be used as an...
 
Database Tools  -  EMS Data Import 2011 for SQL Server 3.5.0.1
EMS Data Import 2011 for SQL Server is an useful application taht will help you import data to SQL Server tables from MS Excel 97-2007, MS Access, DBF, XML, RTF, TXT, CSV, MS Word 2007, ODF and HTML files. It provides adjustable import...
 
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 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  -  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