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.343.033 Times

croniter for Linux 0.3.0

Company: Matsumoto Taichi
Date Added: September 03, 2013  |  Visits: 352

croniter for Linux

Report Broken Link
Printer Friendly Version


Product Homepage
Download (45 downloads)



Example of usage:<br /><br />>>> from croniter import croniter<br />>>> from datetime import datetime<br />>>> base = datetime(2010, 1, 25, 4, 46)<br />>>> iter = croniter('*/5 * * * *', base) # every 5 minites<br />>>> print iter.get_next(datetime) # 2010-01-25 04:50:00<br />>>> print iter.get_next(datetime) # 2010-01-25 04:55:00<br />>>> print iter.get_next(datetime) # 2010-01-25 05:00:00<br />>>><br />>>> iter = croniter('2 4 * * mon,fri', base) # 04:02 on every Monday and Friday<br />>>> print iter.get_next(datetime) # 2010-01-26 04:02:00<br />>>> print iter.get_next(datetime) # 2010-01-30 04:02:00<br />>>> print iter.get_next(datetime) # 2010-01-25 05:00:00<br /><br />All you need to know is constructor and get_next, these signature are following.<br /><br />>>> def __init__(self, cron_format, start_time=time.time())<br /><br />croniter iterate along with 'cron_format' from 'start_time'. cron_format is 'min hour day month day_of_week', and please refer to http://en.wikipedia.org/wiki/Cron for details.<br /><br />>>> def get_next(self, ret_type=float)<br /><br />get_next return next time in iteration with 'ret_type'. And ret_type accept only 'float' or 'datetime'.<br /><br />#md5=fd7477bd050f2474ca06f51504203585

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Cron Format Day Week Gtgtgt Httpenwikipediaorgwikicron Import Init Iterate Iteration Iterget Nextdatetime Min Month Print Start Time Start Time Dtimetimecroniter
Users rating: 0/10

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


CRONITER FOR LINUX RELATED
Desktop Toolbars  -  Digital Clock 1.0
Digital Clock has few features that Microsoft Windows clock gadget doesn't have. There is include computer uptime, alarm and event countdown. It display your time, date, day, week, quarter of a year, current computer uptime, total computer uptime,...
133.14 KB  
Personal Information Managers  -  LeaderTask Daily Planner 11.0
LeaderTask is a free service for task management. It will help you to make a task list for a day/week/month/year, to arrange tasks by projects, to divide them into sub-tasks, to set the reminders for the most important ones, to attach documents to...
9.87 MB  
Calendar  -  PHP iCalendar 2.24
phpicalendar is an open source php application to parse and display shared icalendar-compatible calendars on a websiteWhat it does: - View calendars by day, week, month, or year as a graphical output or a list - View different calendars...
 
Development Editors  -  Datizo 2.2
Datizo-js is a javascript Framework to handle dates and perform complex calendrical calculations. The code is already useable and is almost a complete addon or replacement for the native javascript date object: you can verify a date,...
20.48 KB  
Home & Leisure  -  MB Day Of Week Astrology 1.15
MB Day Of Week Astrology finds your personality traits based on the day you were born. This helps you know yourself better and understand your personality. When it comes to astrology, people usually consider your sun sign. But the day on which you...
691 KB  
Utilities  -  Week Days Finder Portable 1. 2. 2001
Week Days Finder is a small, simple, easy to use application specially designed to help you enter a date and know instantly any week day at any time between 1901 and 2099.This utility is command prompt based, so don't expect any fancy interface to...
389 KB  
Utilities  -  Week Days Finder 1. 2. 2001
Week Days Finder is a small, simple, easy to use application specially designed to help you enter a date and know instantly any week day at any time between 1901 and 2099.This utility is command prompt based, so don't expect any fancy interface to...
901 KB  
Libraries  -  Time::Format 1.02
Time::Format is a Perl module for easy-to-use date/time formatting. SYNOPSIS use Time::Format qw(%time %strftime %manip); $time{$format} $time{$format, $unixtime} print "Today is $time{yyyy/mm/dd}n"; print "Yesterday was...
38.91 KB  
Libraries  -  DateTime::Cron::Simple 0.2
DateTime::Cron::Simple is a Perl module that can parse a cron entry and check against current time. SYNOPSIS use DateTime::Cron::Simple; $c = DateTime::Cron::Simple->new($cron); $boolean = $c->validate_time; $c->new_cron($cron); This...
3.07 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  
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