Module date
source code
Date/time conversion between module datetime, Delphi, and
"HH:MM:SS".
Copyright 2007-2012 Research Foundation State University of New York
This file is part of QUB Express.
QUB Express 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 3 of the License, or (at your
option) any later version.
QUB Express 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,
named LICENSE.txt, in the QUB Express program directory. If not, see
<http://www.gnu.org/licenses/>.
|
DelphiToDatetime(delphi)
Delphi stores datetime as double-precision seconds since 12/30/1899. |
source code
|
|
|
DatetimeToDelphi(dt)
Delphi stores datetime as double-precision seconds since 12/30/1899. |
source code
|
|
|
SecondsToHMS(x,
min_places=1)
Returns x seconds formatted as "[-] [[HH:]MM:]SS." |
source code
|
|
|
HMSToSeconds(hms)
Returns the number of seconds in "[-] [[HH:]MM:]SS." |
source code
|
|
|
|
|
epoch = datetime.datetime(1899, 12, 30, 0, 0)
|
|
DayPerSec = 1.15740740741e-05
|
|
DayPerUsec = 1.15740740741e-11
|
|
__package__ = ' qubx '
|