Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Menulis Tanggal di Org mode

Figure 1: Menulis Tanggal di Org Mode

Kode

Singkat saja, cara menulis datetime di Org mode dengan memanfaatkan fitur macro replacement.1

#+MACRO: today (eval (format-time-string "%A, %d %B %Y - %H:%M:%S WIB"))

tambahkan baris di atas dalam dokumen Org mode Anda.

Penggunaan

Cukup dengan mengetik

{{{today}}}

Demo

Hari ini adalah Kamis, 12 Oktober 2023 - 10:26:16 WIB.

Untuk melihat secara lengkap format times string di Emacs, silakan liat halaman berikut.2

Footnotes:

1

Org-Mode Inline Macro in the Buffer (Alexkehayias)

2

Parsing and Formatting Times (GNU Emacs Manual)

Terakhir diperbarui: 2023-10-12 Kam 10:26 by kholidfu.


This post first appeared on WarJog, please read the originial post: here

Share the post

Menulis Tanggal di Org mode

×

Subscribe to Warjog

Get updates delivered right to your inbox!

Thank you for your subscription

×