Package conary :: Package dbstore :: Module sqllib
[hide private]
[frames] | no frames]

Module sqllib

source code

Classes [hide private]
  DBversion
  CaselessDict
Functions [hide private]
 
toDatabaseTimestamp(secsSinceEpoch=None, offset=0)
Given the number of seconds since the epoch, return a datestamp in the following format: YYYYMMDDhhmmss.
source code
Function Details [hide private]

toDatabaseTimestamp(secsSinceEpoch=None, offset=0)

source code 

Given the number of seconds since the epoch, return a datestamp in the following format: YYYYMMDDhhmmss.

Default behavior is to return a timestamp based on the current time.

The optional offset parameter lets you retrive a timestamp whose time is offset seconds in the past or in the future.

This function assumes UTC.