Questions tagged [time-date]

is for time of day, handling date and time formats, interfacing with the operating system for date and time values, converting time zones, and calculating date and time arithmetic.

26 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
7
votes
1answer
355 views

Increment days / months / dates, etc. within buffer

In a text document, while editing, I often need to increment/ decrement calendar data. So, Friday will need to become Monday, December will need to become March, etc. Or 28 Apr after adding 5 will ...
3
votes
0answers
224 views

How to get the (localized) day of the week lowercased in time-stamp-format?

The %:a allows to get the full weekday in the Time-stamp. My system-time-locale is fr_FR.UTF-8. I am using the Time-stamp in a Markdown file, inside a pandoc title block, which I export to html, so I ...
2
votes
0answers
74 views

Twilight times in addition to sunrise/sunset?

The sunrise-sunset function from solar.el computes sunrise and sunset. I would also like to have a function that computes the end/beginning of civil twilight (center of sun 6 deg below horizon) ...
2
votes
0answers
61 views

Org-mode adding statistic cookie to date-tree lines in capture

In this video(timestamped to relevant section), I see this guy's org file in a date-tree with the [/] statistic cookie next to each YYYY-MM-DD headline. https://youtu.be/-2RXhPV_zgc?t=12m51s I'd ...
2
votes
1answer
141 views

Can Ibuffer show buffers last viewing time?

I was wondering if it is possible to have a column in Ibuffer that shows the last viewing time. In the default view I can see these columns: MR Name Size Mode Filename/...
1
vote
1answer
57 views

TODO item for paying credit card bill 3 weeks after statement date

My credit card bill is due 3 weeks after the statement date. The statement date is always the 20th of the month. Due to the variable lengths of months, the due date is not always on the same day. I'd ...
1
vote
1answer
31 views

How to display atime, ctime and mtime of a file in the modeline?

The modeline at the bottom already displays valuable information about the current buffer, like the EOL type (LF), the encoding (UTF-8)… Now when I open a file, I would find it very handy to also ...
1
vote
0answers
64 views

Setting (setq system-time-locale “C”) in daemon ineffective

I try to set the time locale to "C" in my config via (setq system-time-locale "C"). However, when using the emacs --daemon, it is not set properly and I end up with non-english ...
1
vote
0answers
55 views

Get current time zone in IANA time zone format (a.k.a. Olson format)?

I know that current-time-zone can be called to obtain the current time zone. On my system, this returns (-25200 "PDT"). However, I would like to get the current time zone in IANA format, ...
1
vote
0answers
46 views

Sorting org files in Emacs Dired on the basis of the org time stamp in the file itself

Is there a way of sorting org files (.org) in Emacs Dired on the basis of the org time stamp in the file itself. With every org file I create, I insert an org time stamp near the top of the file. This ...
1
vote
1answer
47 views

Let org-timestamp-up/down work on non-timestamp

So in org-mode, shift-up and shift-down works on timestamps. Is there a way to let it work on arbitrary dates in the text that is not a timestamp? For example if I write The date is 2019-01-01. ...
1
vote
0answers
85 views

Strategy for using Emacs as an event log?

I'd like to be able to use Emacs to track various events in my day-to-day life, such as paying a bill, going to an appointment, replacing oil, etc. The goal would be to be able to view this event in ...
1
vote
1answer
93 views

How to make implicit link target from timestamp in org-mode?

In org-mode I usually create several notes with timestamps under a headline, for example: * idea [2018-09-26 Wed 09:39] \\ General description of idea. ** idea development [2018-09-26 Wed 09:...
1
vote
0answers
31 views

Logbook clock entries as active/inactive time stamps in icalendar export

Is there a way to automatically have active/inactive timestamps updated in the body of the org node? My final goal is to have the clock entries included as events in icalendar export. Alternatively ...
1
vote
0answers
560 views

mode line time not updating

I'm using powerline for my modeline and I have placed a clock within the modeline. This clock is only updating when I'm within that buffer, if I have another buffer up the clock freezes until that ...
1
vote
0answers
798 views

Insert Current Date and Time with Custom Timestamp

I am trying to get org-mode to insert a custom timestamp with the current time. Something along these lines: 20160824 34|3 163000 (UTC) Which I believe should be the following: ("%Y%m%d %W|%u %H%M%...
0
votes
0answers
27 views

add date to org-export filename

Is there any way to add the date specified with #+DATE to #+export_file_name? for example my buffer is named buffer and I want the result to be named 0401_buffer.pdf, so something like #+...
0
votes
0answers
17 views

World time converter under emacs and/or orgmode

Is there a World time converter under emacs and/or orgmode? As everything moves online, it occurs more often than before that I want to schedule in orgmode an online event which occurs in some other ...
0
votes
0answers
5 views

Strange sorting behavior for missing deadline and scheduled dates in org-agenda-sorting-strategy?

Running fresh (emacs -q), with the following org-mode items: * TODO item 1 DEADLINE: <2021-03-01 Mon> SCHEDULED: <2021-02-27 Sat> * TODO item 2 SCHEDULED: <2021-02-28 Sun> * TODO ...
0
votes
0answers
30 views

Emacs current-time value and Windows RealTimeIsUniversal

I have linux and windows dual booted on pc and linux is using utc as default while windows registry is set to yield utc time by setting qword:00000001 to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\...
0
votes
0answers
28 views

Extract year from different date strings in alist

I have a function that tries to extract the year from date strings stored in an alist below: (setq entry '(("date" . "1998/03") ("origdate" . "1930"))) (...
0
votes
0answers
181 views

Time-formatted output from org-table date- and time calculation?

I have an org-table for my timesheets. Part of it looks this: | Start | End | End - Start | | <2020-03-05 10:00> | <2020-03-05 Thu 14:30> | 0.1875 | #+...
0
votes
1answer
33 views

Insert inactive date with elisp function including date arithmetic

For a capture template I want to insert inactive dates for the upcoming week (without a prompt). In this format (no time component): [2020-02-10 Mo] I've figured out that I could do something like ...
0
votes
0answers
108 views

Human-readable time interval function for Elfeed

Is there some built-in or third-party function I can use for the following? The function (elfeed-entry-date entry) returns the timestamp for an RSS feed entry, e.g. 1518282912.0. I would like to ...
0
votes
2answers
99 views

Problem inserting timestamps when the year is far removed from the current date

I am editing an old text file that has each entry preceded by a date = 11/23/1983. I would like to reformat this date to a org timestamp. Using the various methods specified in the documentation is ...
0
votes
1answer
174 views

how to detect selection in date mode?

I want to write a mode for ledger. The first thing I want to do is to be able to insert date stamps. There is a very nice mode in Emacs called calendar. I want to be able to select a date within it. ...