X-Git-Url: https://git.tokkee.org/?p=nagixsc.git;a=blobdiff_plain;f=nagixsc_read_xml.py;h=e479d5f48c794520ffe60e9c1d160ce190ea5a75;hp=53bbf9b85ab4bcea416fd240e7d9bc9bff9ea28e;hb=HEAD;hpb=409cfd6ed1ee280fcb0abde4a8538460778ea24c diff --git a/nagixsc_read_xml.py b/nagixsc_read_xml.py index 53bbf9b..e479d5f 100755 --- a/nagixsc_read_xml.py +++ b/nagixsc_read_xml.py @@ -1,10 +1,28 @@ #!/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; 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., +# 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 +52,7 @@ from nagixsc import * ############################################################################## -now = int(datetime.datetime.now().strftime('%s')) +now = int(time.time()) # Get URL or file doc = read_xml(options)