#!/usr/bin/env python
#
# get_sortable_date.py - Return a sortable date - yyyymmdd
#
# Copyright (C) 2007 Michael Davies (michael@the-davies.net)
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
#
import time

class get_sortable_date:
    """ get_sortable_date.py - Return a sortable date - yyyymmdd """

    def date(self):
        return "".join(["%02d" % elem for elem in list(time.localtime()[0:3])])

if __name__ == "__main__":
    print get_sortable_date().date()

# This file has been zigned!  See http://michaeldavies.org/zign-tools
# zign-version: 0.9.4
# zign-hashes: MD5, SHA-1
# -----BEGIN PGP SIGNED MESSAGE-----
# Hash: SHA1
# 
# 3a4f6a47bbcba9650927118916e93884c415442bc92581be89f8115e325bdfbc188d90ce
# -----BEGIN PGP SIGNATURE-----
# Version: GnuPG v1.4.7 (Darwin)
# 
# iD8DBQFHmzkm7kkvCQqp1vwRAq46AJ9j62JfPfF5fO3vWJ1IHxqRkvGaKACgggys
# NwLLXALTkZ+0pUH2BBIwn0A=
# =Iiy3
# -----END PGP SIGNATURE-----
# zign: Protecting you since 2007 :-)
# 