Created
April 9, 2013 12:14
-
-
Save lkarsten/5345224 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# .- coding: utf-8 -. | |
import datetime, locale | |
#locale.setlocale(locale.LC_ALL, "nb_NO.UTF-8") | |
today = datetime.datetime.now() | |
then = datetime.datetime(year=2013, month=5, day=16, hour=6, minute=30) | |
then_baat = datetime.datetime(year=2013, month=5, day=18, hour=12, minute=00) | |
print "Avreise om %s" % (then - today) | |
print "Overtar båt om %s" % (then_baat - today) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment