Download ago 0.0.2



Antivirus information.

We did not scan ago 0.0.2 for viruses, adware, spyware or other type of malware. For your own protection it's recommended to have an updated antivirus installed on your computer when downloading and installing programs from freesoftware0.

freesoftware0 lists downloads from various software publishers, so if you have a question regarding a particular software contact the publisher directly. The download links for ago 0.0.2 are provided to you by freesoftware0 without any warranties, representations or gurantees of any kind, so download at your own risk.

Description

ago is a Python module that provides human readable timedeltas.

How to install

easy_install ago

How to use

Import ago and create a timedelta object:

from ago import delta2dict, human

from datetime import datetime

# pretend this was stored in database
d1 = datetime(
 year = 2010,
 month=5,
 day=4,
 hour=6,
 minute=54,
 second=33,
 microsecond=4000
 )

# this is right now
d2 = datetime.now()

# subtract the two for a timedelta object
delta = d2 - d1

# create a dictionary out of the timedelta
# not needed but accessable
delta_dict = delta2dict( delta )
print delta_dict

# display a human readable timedelta
print 'Created ' + human( delta ) + ' ago.'

# optionally pass a precision
print 'Created ' + human( delta, 3 ) + ' ago.'
print 'Created ' + human( delta, 6 ) + ' ago.'



Product's homepage

Requirements:

· Python

Related programsOur Recommendations

DamnSimplePlayer 0.1 Alpha

DamnSimplePlayer is a small and very simple audio player for Linux.It uses the PyGTK and GStreamer

Download

Power Boat 1.0

Power your way past the opposition over 3 challenging courses, in this online game.About Google

Download

Custom Download Manager 2.6.20091103

Custom Download Manager is a Firefox extension that allows you to personalize your download

Download

MedaliIZagovoriVLogeBoja 1.0

MedaliIZagovoriVLogeBoja is an addon for botva.ruAbout Google ChromeGoogle Chrome is a browser that

Download

Shopping Cart Hero 2 13.2644.8911

Fly away as far as possible in your shopping cart! Try not to crash, in this online gameAbout

Download

flipflip's Podcast downloader 1.5

flipflip's Podcast downloader is a script that downloads podcasts.Is has options to limit the

Download

eyeRecipes 0.01

eyeRecipes is an Iframe application that has over 35,000 recipes stored in it. You can use it

Download

libaiml 0.6

libaiml is a C++ AIML intepretor in the form of a static library written from scratch.libaiml

Download

Amiga3.x 27-11-10

Amiga3.x is a GTK2 theme/style.How to install?· Right click on your desktop and select

Download

PicoGUI 0.46

PicoGUI aims to be a complete GUI environment for handheld computers and other embedded systems. It

Download


Thumbnail of ago 0.0.2

Rating:

3 stars

Price: FREE

Publisher/Developer: Russell Ballestrini

Release Date: Jul 4, 2012

View Program Details

Top Downloadslast week