Re: Date format when using display
Frederic Gobry <[email protected]>
| Newsgroups | gmane.comp.gnome.apps.pybliographer |
|---|---|
| Message-ID | <[email protected]> |
> Is there a pre-pacakged way to to change the format of dates output? Or
> will I have to edit the XMS files and/or files in Pyblio/Style/? I would
> like it to print
Unfortunately, there is no way that does not involve playing with
these files:
- you need to declare a new date formatter, as in Pyblio.Style.Generic,
function standard_date (), and register it as it is done at the
bottom of this file.
This declaration and registration can be done in your private
~/.pybrc.py file
- then you can use it in a style, by replacing
<define field="date">european_date</define>
by your own method name.
Frédéric
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFC12TVFjQHpltE9KURAufeAJ4+4gb+l57oV7yGzEql7zfBdjWlUgCdHntt tM/5SmsgZlhFaPjGJmnqlAU= =d1NM -----END PGP SIGNATURE-----