ahaha, so much time spent with such a small thing...

http://www.w3schools.com/sql/func_date_format.asp


On Thu, Mar 10, 2011 at 9:07 PM, Roman Chyla <[email protected]> wrote:
> Hi,
>
> Does anybody know how to get correctly formatted date out of the bibrec?
>
> I want to get YYYY-MM-DD hh:mm:ss -- according to the python docs, the
> format is "%Y-%m-%d %H:%M:%S"
>
> But I keep getting 'February' instead of 02
>
>
> In [5]: last_recid=500
>
> In [6]: search_engine.get_modification_date(last_recid, fmt="%Y-%m-%d 
> %H:%M:%S")
> Out[6]: '2002-02-05 00:February:00'
>
> I already tried all the codes from: http://docs.python.org/library/time.html
>
> Anybody knows? Thanks,
>
> Roman
>

Reply via email to