Support for additional strftime formatting capabilities
Hi team, apologies if this is a duplicate but I searched and couldn't find anything Open. There are two missing pieces of functionality from GDateTime: ^
and #
Are there plans to implement these in the future? Would merge requests be accepted for it?
JavaScript:
> GLib.DateTime.new_now_local().format("%A");
"Thursday"
> GLib.DateTime.new_now_local().format("%^A");
JS ERROR: TypeError: value is null
> GLib.DateTime.new_now_local().format("%p");
"AM"
> GLib.DateTime.new_now_local().format("%#p");
JS ERROR: TypeError: value is null
Python3:
>>> GLib.DateTime.new_now_local().format("%A")
'Thursday'
>>> GLib.DateTime.new_now_local().format("%^A")
>>> GLib.DateTime.new_now_local().format("%p")
'PM'
>>> GLib.DateTime.new_now_local().format("%#p")
date
command:
$ date +"%A"
Thursday
$ date +"%^A"
THURSDAY
$ date +"%p"
AM
$ date +"%#p"
am
Edited by Rick Calixte