Bug 157603 - Format Strings documentation misses "AM/PM" specifier
Summary: Format Strings documentation misses "AM/PM" specifier
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Documentation (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: fpy
URL:
Whiteboard: target:24.8.0
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-04 18:09 UTC by Mike Kaganski
Modified: 2024-03-11 22:52 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2023-10-04 18:09:16 UTC
It is possible to format times to use 12-hour AM/PM format, instead of 24-hours. However, the help [1] does not tell that in the respective "Time Formats" section.

An example of the format string is:

  H:MM AM/PM

and the "AM/PM" (five characters, AM then slash then PM) is the exact code to get the 12-hour format; e.g., "AM / PM" or "AMPM" wouldn't work.

A Basic code like

  MsgBox Format(Time(), "HH:MM AM/PM")

gives me at this moment

  09:09 PM

[1] https://help.libreoffice.org/latest/en-US/text/shared/01/05020301.html
Comment 1 Commit Notification 2024-03-11 16:39:01 UTC
Pierre F committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/help/commit/2694856dafe3e7850b966583e093e62b05dc099d

add paragraph about "AM/PM" tdf#157603 05020301.xhp