My usecase is that I produce a timeline. After a certain cut-off time later in the day, I already want to produce tomorrow’s version.
I don’t really care whether this produces a full datetime or only a time. For completeness’ sake a parameter could decide that.
N.b.: currently I have to remember to pass in an --input to differentiate the time of day, which I find error prone.
hpcfzl
July 20, 2026, 12:15am
2
There is this issue about your exact question:
opened 04:58AM - 24 Aug 23 UTC
closed 09:46AM - 24 Aug 23 UTC
feature request
### Description
Would work as `datetime.today`, but also adding the local OS ti… me at time of compilation.
### Use Case
My specific use case is really that I want my documents to render in dark mode if I'm editing them at night, but really this should be added for consistency and extensibility; I don't see a reason why this shouldn't be part of Typst besides "bloat". But it's not something a package can add by itself, so I think this change *is* worth it.
Also at the very least `hour:minute` could be desirable in a letter etc.
From the comment:
I’ll keep this issue in mind and might reconsider in the future, but I feel like the discussion here is going nowhere. The substantial arguments have been made, so there’s not much of a point to continue going in circles here.
we can conclude that it’s essentially a very low priority.
Your OS should be able to provide a command for this.