emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* how to insert, interactively org-time-stamp with any time
@ 2023-05-22  7:54 Uwe Brauer
  2023-05-22  8:41 ` Ihor Radchenko
  0 siblings, 1 reply; 3+ messages in thread
From: Uwe Brauer @ 2023-05-22  7:54 UTC (permalink / raw)
  To: emacs-orgmode


Hi

Using C-u C-c .

Prompts a date and the actual time, however how can I change the actual
time? No key seems to allow that, so only end up with for example

<2023-05-22 09:45>

But I would like for example to chose 

<2023-05-22 16:45>

How can I achieve that?


BTW the way the time stamp is displayed is

<22.05.2023 09:45 >

While 
,----
| org-time-stamp-formats is a variable defined in ‘org_init.el’.
| 
| Its value is ("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>")
`----

And my setting is 

 '(org-time-stamp-custom-formats '("%d.%m.%Y" . "%d.%m.%Y %I:%M %p"))


Not sure what the %p

Regards

Uwe Brauer 
-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to insert, interactively org-time-stamp with any time
  2023-05-22  7:54 how to insert, interactively org-time-stamp with any time Uwe Brauer
@ 2023-05-22  8:41 ` Ihor Radchenko
  2023-05-22  8:42   ` Uwe Brauer
  0 siblings, 1 reply; 3+ messages in thread
From: Ihor Radchenko @ 2023-05-22  8:41 UTC (permalink / raw)
  To: Uwe Brauer; +Cc: emacs-orgmode

Uwe Brauer <oub@mat.ucm.es> writes:

> Using C-u C-c .
>
> Prompts a date and the actual time, however how can I change the actual
> time? No key seems to allow that, so only end up with for example
>
> <2023-05-22 09:45>
>
> But I would like for example to chose 
>
> <2023-05-22 16:45>
>
> How can I achieve that?

C-u C-c . 2023-05-22 16:45 <RET>
or (is you do it today)
C-u C-c . 16:45 <RET>

> BTW the way the time stamp is displayed is
>
> <22.05.2023 09:45 >
>
> While 
> ,----
> | org-time-stamp-formats is a variable defined in ‘org_init.el’.
> | 
> | Its value is ("<%Y-%m-%d>" . "<%Y-%m-%d %H:%M>")
> `----
>
> And my setting is 
>
>  '(org-time-stamp-custom-formats '("%d.%m.%Y" . "%d.%m.%Y %I:%M %p"))
>
>
> Not sure what the %p

That's your setting, no? It looks like you have no equivalent of AM/PM
in your locale, so %p expands to empty string, prepended by space, as
you instructed. On my side, your value of
`org-time-stamp-custom-formats' works just fine.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: how to insert, interactively org-time-stamp with any time
  2023-05-22  8:41 ` Ihor Radchenko
@ 2023-05-22  8:42   ` Uwe Brauer
  0 siblings, 0 replies; 3+ messages in thread
From: Uwe Brauer @ 2023-05-22  8:42 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Uwe Brauer, emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 815 bytes --]


> Uwe Brauer <oub@mat.ucm.es> writes:

> C-u C-c . 2023-05-22 16:45 <RET>
> or (is you do it today)
> C-u C-c . 16:45 <RET>

Ah, thanks


> That's your setting, no? It looks like you have no equivalent of AM/PM
> in your locale, so %p expands to empty string, prepended by space, as
> you instructed. On my side, your value of
> `org-time-stamp-custom-formats' works just fine.


Ok, I see, I deleted th %p entry and now everything is fine, thanks.
-- 
Warning: Content may be disturbing to some audiences
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 
https://addons.thunderbird.net/en-US/thunderbird/addon/gmail-conversation-view/

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 5673 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-05-22  8:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-22  7:54 how to insert, interactively org-time-stamp with any time Uwe Brauer
2023-05-22  8:41 ` Ihor Radchenko
2023-05-22  8:42   ` Uwe Brauer

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).