Skip to main content
Share Your Experience: Take the 2024 Developer Survey
3 votes

Converting 'day' value to a timestamp

There is date-to-time: (make-ts :unix (string-to-number (format-time-string "%s" (date-to-time "2023-08-13")))) This will assume that 2023-08-13 denotes midnight ...
d125q's user avatar
  • 1,443
1 vote

Prevent temporary buffer from overwriting main buffer

@phils approach mentioned above helped me solve it. Culprit was golden-ratio-mode for future reference.
David Cooper's user avatar
1 vote
Accepted

Show repeated tasks in org-agenda grid?

If it simply repeats, put the repeater in the timestamp, but don't mark it as scheduled. The SCHEDULED "property" (in quotes because it's technically not quite an org mode property) is ...
Trevoke's user avatar
  • 2,450
1 vote
Accepted

How to set milliseconds in a timestamp created by seconds-to-time?

The problem is not the time functions, it is that you are using integer division, so you lose the fractional part. Try: (seconds-to-time (/ ms-since-epoch 1000.0)) and leave everything else as is (...
NickD's user avatar
  • 30.5k
1 vote

how to swap month with day

So you write your own function that takes day, month, and (optional) year arguments and calls the original function with the arguments in the order that IT expects, and add it to your init file: (...
NickD's user avatar
  • 30.5k
1 vote

how to swap month with day

You did not tell us the exact format of the dates and the file, but you could try loading the following command (the following command has been updated to work for the date format you mention in your ...
dalanicolai's user avatar
  • 7,855
1 vote

Converting 'day' value to a timestamp

I think @d125q has the right solution for you, but let me explain what's happening. Firstly date-to-day doesn't like your input. Via it's docstring (C-h f date-to-day) Return the absolute date of ...
nega's user avatar
  • 3,276

Only top scored, non community-wiki answers of a minimum length are eligible