-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
¦îNc @@ s d d l m Z d d l Z d d l Z d d l Z d d l m Z d d „ Z d „ Z d d „ Z e j
d ƒ Z e j
d ƒ Z d „ Z
d S(
i ( t absolute_importN( t osutilsc C@ s• t | t ƒ s t | ƒ ‚ n | d k r3 d } n t j | | ƒ } t j | d t j d | ƒ d | t | ƒ d d | d | d d f S(
s Format a date, such that it includes higher precision in the
seconds field.
:param t: The local time in fractional seconds since the epoch
:type t: float
:param offset: The timezone offset in integer seconds
:type offset: int
Example: format_highres_date(time.time(), -time.timezone)
this will return a date stamp for right now,
formatted for the local timezone.
>>> from bzrlib.osutils import format_date
>>> format_date(1120153132.350850105, 0)
'Thu 2005-06-30 17:38:52 +0000'
>>> format_highres_date(1120153132.350850105, 0)
'Thu 2005-06-30 17:38:52.350850105 +0000'
>>> format_date(1120153132.350850105, -5*3600)
'Thu 2005-06-30 12:38:52 -0500'
>>> format_highres_date(1120153132.350850105, -5*3600)
'Thu 2005-06-30 12:38:52.350850105 -0500'
>>> format_highres_date(1120153132.350850105, 7200)
'Thu 2005-06-30 19:38:52.350850105 +0200'
>>> format_highres_date(1152428738.867522, 19800)
'Sun 2006-07-09 12:35:38.867522001 +0530'
i i s %Y-%m-%d %H:%M:%Ss %.9fi s
%+03d%02di i<