On Feb 21, 2008, at 9:09 AM, Tomás García Ferrari wrote:
I'm trying to set a clipping to put the date and time on documents.
I'm using this:
#inline##LOCALTIME %e %B %Y, %R#
According to strftime routine,
%e = the day of the month as a decimal number
%B = the locale's full month name
%Y = the year with century as a decimal number
%R = the time in 24 hour notation (%H:%M)
being the result this:
20 February 2008, 13:33
My question is how could I change the locale to show the same
information in other language (such as Spanish or German)?
#LOCALTIME# (and #GMTIME#) are implemented using strftime.
#DATETIME# and #DATETIME_GMT# accept ICU formatting strings, and
respect the date and time formatting settings in the system preferences.
Are you looking for an arbitrary locale, which isn't the one specified
in your date & time formatting preferences? There is, unfortunately,
no built-in placeholder which does that. But you may be able to solve
the problem by using the #script# placeholder which lets you run an
arbitrary bit of code and insert the result.
Jim
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>