Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for access time in bibliography #54

Open
robertosw opened this issue May 9, 2024 · 1 comment
Open

Support for access time in bibliography #54

robertosw opened this issue May 9, 2024 · 1 comment

Comments

@robertosw
Copy link

Description

I want to show what time I accessed a resource.

As hayagriva does not support the use of a time, I have switched to the BibTeX format.
Using this entry compiles without errors:

@online{online-source,
    author    = "Donald Knuth",
    title     = "Knuth: Computers and Typesetting",
    url       = "http://www-cs-faculty.stanford.edu/~uno/abcde.html",
    urldate   = {2024-05-09T14:30:00},
}

But the bibliography only renders the date:
Bildschirmfoto vom 2024-05-09 17-58-20

I have used the IEEE style and tried several others and none of them rendered the time, so I suspect it is not a matter of the style used.

I have already added an issue in the hayagriva repo to add support for the access time: typst/hayagriva#160

Use Case

To be able to use a more detailed access timestamp for online ressources

@quachpas
Copy link
Contributor

This should probably be transferred to https://github.com/typst/biblatex

If I understand well:

  1. The field urldate is parsed for year, month and day; no information about the time is parsed
  2. Parsing a Datetime is already implemented in date.rs
  3. In biblatex, options dateusetime and seconds must be set to true in order to print the full timestamp.

[1] https://github.com/typst/biblatex/blob/main/src/macros.rs#L58
[2]

pub struct Datetime {

@laurmaedje laurmaedje transferred this issue from typst/typst May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants