X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=nagixsc_read_xml.py;h=b4c9bb561dbc365e0af769bb3ca71c9db396bf3e;hb=5be657722f4ed535678495579783945158d0a135;hp=53bbf9b85ab4bcea416fd240e7d9bc9bff9ea28e;hpb=409cfd6ed1ee280fcb0abde4a8538460778ea24c;p=nagixsc.git diff --git a/nagixsc_read_xml.py b/nagixsc_read_xml.py index 53bbf9b..b4c9bb5 100755 --- a/nagixsc_read_xml.py +++ b/nagixsc_read_xml.py @@ -1,10 +1,27 @@ #!/usr/bin/python +# +# Nag(ix)SC -- nagixsc_read_xml.py +# +# Copyright (C) 2009-2010 Sven Velt +# +# 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; only version 2 of the License is applicable. +# +# 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., +# 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #import base64 -import datetime import libxml2 import optparse import sys +import time parser = optparse.OptionParser() @@ -34,7 +51,7 @@ from nagixsc import * ############################################################################## -now = int(datetime.datetime.now().strftime('%s')) +now = int(time.time()) # Get URL or file doc = read_xml(options)