GEPS008: Remove deprecated Date module

svn: r19761
This commit is contained in:
Nick Hall 2012-06-05 18:02:19 +00:00
parent 28b94af257
commit 25e3f707d2
2 changed files with 1 additions and 31 deletions

View File

@ -1,29 +0,0 @@
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2000-2006 Donald N. Allingham
#
# 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
#
# $Id$
"""
this module is only needed to to enable db upgrade
"""
from gen.lib import Date

View File

@ -50,7 +50,6 @@ from gen.display.name import displayer as name_displayer
import gen.lib
import Errors
from gen.locale import codeset
from Date import Date
import gen.datehandler
from const import TEMP_DIR, USER_HOME, GRAMPS_UUID, IMAGE_DIR
@ -1579,7 +1578,7 @@ def format_time(secs):
24 hour time as hh:mm:ss.
"""
t = time.localtime(secs)
d = Date(t.tm_year, t.tm_mon, t.tm_mday)
d = gen.lib.Date(t.tm_year, t.tm_mon, t.tm_mday)
return gen.datehandler.displayer.display(d) + time.strftime(' %X', t)
#-------------------------------------------------------------------------