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.

Filter by
Sorted by
Tagged with
0
votes
1answer
234 views

I cannot manually edit date fields before closing bracket in org-mode buffer

I am aware of the syntax for creating repeated tasks in org-mode, but for some reason I am now unable to manually edit the text of the "Scheduled" and "Deadline" date fields to do this, unless I do ...
2
votes
1answer
303 views

Is there a view that can show time entered per day?

Basically I am after a method to find missing times. Currently I use this code to view times per task. #+BEGIN: clocktable :link t :maxlevel 10 :block week :scope file But I can not view if i am ...
1
vote
0answers
692 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%...
2
votes
1answer
1k views

Current time timestamp in org-capture-templates

In org-mode org-capture templates, what is the way to insert current time timestamp? I've tried %U like so: (setq org-capture-templates (quote ( ("k" "Capture an item and schedule it for ...
7
votes
2answers
872 views

Counting the number of days that have passed since a certain date

I have an org-mode document in which I wish to keep track of the number of days that have passed since a certain date. Is there a built in function for this, or will I be forced to write a custom ...
2
votes
1answer
332 views

org-mode timestamp repeater interval manipulation

What are (if any) the lisp functions to read and write the repeater interval part of the org-mode timestamps? (The ones at the end of the timestamp string, which are optional, e.g. +1w or +6d in <...
2
votes
1answer
143 views

Is it possible to change and freeze the current date-time in Emacs?

I'm a heavy Emacs Org-mode user and VERY dependent on the date functionality. I frequently enter events, receipts, etc. using capture templates after they've already occurred. My current solution is ...
2
votes
1answer
66 views

Query org agenda build time?

Q: how can I get the last time I built the org agenda buffer? I've set an idle timer to rebuild my org agenda buffer every x minutes. It works fine, but it's inefficient to rebuild if the agenda ...
3
votes
1answer
66 views

Column of programmatically updated dates in org-mode

I'm trying to make a table in org-mode, the first column of which should be the Monday of each week starting with a date I specify. So, for example, if I specify Dec 14th, I would get a column with ...
1
vote
1answer
601 views

Convert org-time-stamp

I need a function that can determine whether an org-time-stamp in a table equals the current date. Example: #+NAME: test | date | breakfast | |------------------+-----------| | <2015-...
1
vote
1answer
89 views

Alternative to “Time-stamp: <…>” [closed]

I seem to remember from several years ago, an alternative and better package and/or command to "Time-stamp: <...>". I can't seem to find it now. Does anyone know of this? I want to use this in C ...
2
votes
1answer
821 views

in yasnippet, how to insert variable date with fixed time of day?

I want a yasnippet to insert an org-mode date and time. The date should be today's date, but the time should be fixed. So far my snippet correctly inserts today's date, but not the time: # -*- ...
4
votes
1answer
372 views

Display months/days or timestamps in another language than English

Setup: GUI version GNU Emacs 25.0.50.1 (x86_64-w64-mingw32) of 2015-07-25 on KAEL compiled from EmacsW64. Windows 7 x64 Dutch version. Situation: When I'm evaluating the following snippet: (...
8
votes
1answer
1k views

Specify timezone in Org date format

When I write something like this: <2015-07-05 Sun 20:00 GMT+0>, and then try to edit it by pressing C-c ., Org removes the GMT+0 part. So, I think it's in a wrong format. Note: I don't want to ...
1
vote
2answers
608 views

Yasnippet invoked org-time-stamp function inserts double timestamp

I created a yasnippet template to quickly timestamp a note I'd like to make in org-mode. The body of the yasnippet file reads $0 :PROPERTIES: :CREATED: `(org-insert-time-stamp nil t t)` :END: ...
3
votes
2answers
722 views

Converting plain text to dates

Is it possible to convert plain text dates to Org dates automatically? I have entries in the format: 16 February 2015 which I would like to convert to Org dates: <2015-02-16 Mon>
2
votes
1answer
801 views

How to insert inactive [timestamp] via function?

C-u C-c ! generates a time stamp like [2015-05-04 Mon 17:13] I would like to assign a shortcut (e.g F1) to this action. So far I have: (defun my/timenow (&optional arg) (interactive) (let (...
2
votes
1answer
574 views

Compare file modification time stamps

Background I am using Emacsclient to open files in a Emacs server. The server configuration depends on the content of a JSON configuration file. A Perl script can read the config file and write a ...
2
votes
1answer
100 views

meta-data related to the current buffer

How can I retrieve the date/time of the creation of the current file (file-date-time-of-creation) on my system? The same question can arise for the size. A related question was asked here. This is a ...
1
vote
2answers
306 views

The time of the last change of the current buffer

Can Emacs determine the time of the last change (or the last edit) done to the current buffer? The buffer may has been saved or not.
1
vote
2answers
84 views

unable to restart or update a timer

I have simple timer which makes sure a function is executed for every 10 seconds. (setq interval 10) (defun run-every-ten-seconds () (do-something)) (defun start-timer () (setq timer (run-...
1
vote
1answer
552 views

How to display date in Julian in the mode line?

The following setting display the date in Gregorian calendar in the mode line. (setq display-time-day-and-date t) (display-time) My question is how to change the above settings for date to be shown ...
4
votes
1answer
3k views

How to display time in seconds in the mode line?

By default display-time-mode shows the time only in minutes. How I can display time in seconds? Something like 18:34:45".
2
votes
1answer
186 views

Invalid date: 01-Jan-2055

I recently downloaded Emacs 24.4 and sometimes I see an "invalid date" error in my buffer. When I am in eww, often I try to click (RET) a link and I get: error in process sentinel: Invalid date: 01-...
7
votes
2answers
1k views

How can I change Org-mode time format for one buffer?

In general all timestamps in Org-mode appears as [YYYY-MM-DD Day]. I have one file (buffer) where I would like the format to be different. Either just [YYYY-MM-DD] or [YYYY-MM]. How do I tell Org-mode ...
6
votes
2answers
744 views

Elisp function to see a date for next Wednesday

Admitting up front that I am not capable of much Lisp, I have found ways to produce the current date or a number of seconds from a date, but I am looking for a simple equivalent to shell command like ...

1 2