wiki/structured/text.org-mode.timestamps.org
Gabriel Arazas edc686c25c Update wiki on various topics
This update is too large, I made too many notes on stuff. Nonetheless,
it is very nice to see progress. I've made note revisions on the
following topics:

- Learning
- Writing
- Various Linux-related stuff

I've yet to start learning illustration but I'll be starting tomorrow
for an update how do I keep in mind with those writings. There are still
a lot of things to be processed from the backlog with yet more notes on
learning but I keep having those perspectives whenever I practice so
ehhh... Better have those than nothing?

Furthermore, I've also updated the timestamp format. It is pretty simple
to update all of the notes with a couple of `sed` calls.

Aaaand, I've also changed the way how the assets stored with the folders
only leaving it up for the generated files instead of enforcing it on
every note. I create more visual aids and managing them is a pain for
each note. This restructuring frees me of that burden.
2021-07-20 19:52:43 +08:00

2.9 KiB

Org mode timestamps

As previously stated, Org mode is first created as an outliner enabling you to manage tasks. Here's some of the features you might be interested when using it as such.

Timestamps and durations

Being a personal information tool, Org mode heavily features timestamps.

<2021-04-21 Wed>

You can easily set a timestamp with org-time-stamp that comes with an interactive calendar and a prompt to indicate the date and time. The prompt is more useful since you can quickly enter relative values such as:

  • +1d for tomorrow.
  • 2020-05-01 +23d means 23 days after the 2020-05-01.
  • +4d 10:00+2 for 4 days later starting from 10:00 to 12:00.
  • +1m 1pm+3 for a month later starting from 1:00 PM to 4:00 PM.

Durations are made by putting a pair of dashes between two timestamps.

<2021-04-22 Thu>--<2021-04-25 Sun>

You can quickly create a duration by running org-time-stamp two times consecutively.

Deadlines and schedules

In Org mode agenda view, it can show deadlines and schedules by prepending the timestamps with DEADLINE and SCHEDULED, respectively.

DEADLINE: <2021-04-26 Mon 22:00>
SCHEDULED: <2021-04-25 Sun 20:00>
  • Deadline entries make up the tasks that has to be done by the specified datetime. When present in the agenda, it will warn an issue when the task is not done after the deadline had passed.
  • Scheduled entries indicate the tasks that you will do starting from the timestamp. When present in the agenda, it will simply remind you to do the task until done.

Repeated tasks

One can set repeated tasks in the following format.

SCHEDULED: <2020-06-22 Mon +2d>

Any missed session will cause the agenda to keep overdued sessions and accumulate to repeat the tasks 'X' number of times with the number of overdued sessions.

Some tasks does not work this way, however. You don't need to replace the batteries 5 times or brush your teeth 10 times to make up for it. For this, you can do the following.

SCHEDULED: <2020-06-22 Mon ++2d>

One cool thing about it if you mark a task as done, it will simply create an entry of the task completed and update the base date.

* TODO Watch the lectures from Brian Harvey's SICP series (https://archive.org/details/ucberkeley-webcast-PL3E89002AA9B9879E?sort=titleSorter)
SCHEDULED: <2020-06-24 Wed .+2d>
:PROPERTIES:
:LAST_REPEAT: [2020-06-22 Mon 22:01]
:END:
- State "DONE"       from "TODO"       [2020-06-22 Mon 22:01]