Re: Format of date in document data

John Gersh <[email protected]> Tue, 07 Feb 2012 08:55:27 -0500
Newsgroups gmane.comp.graphics.omnigraffle.user
Message-ID <CB5694B9.113B8%[email protected]>
Chris,

I'm not sure what you mean by "are you really using." I'm just an OG user,
not from Omnigroup.

My statement was an empirical one; perhaps I should have said "OG seems to
use..." I simply looked at the examples in the OG stencil and experimented
a bit.

The developer docs say that NSDate uses Unicode date formatters. See
https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/Dat
aFormatting/Articles/dfDateFormatting10_4.html#//apple_ref/doc/uid/TP400023
69-SW1 

- John Gersh



On 2/7/12 5:10 AM, "Chris Ridd" <[email protected]> wrote:

>On 31/01/2012 14:36, "John Gersh" <[email protected]> wrote:
>
>>OmniGraffle uses Unix date format specifiers within its own syntax for
>>variables. To see this use one of the date format objects in the
>>Variables
>>stencil. For example, use the first one, showing "01/31/12" for today.
>>(Localization may vary the format; this is what I see in the USA. You'll
>>probably see "31/01/12".) Drag it onto the digram and double-click on it
>>to show the underlying syntax. I see "<%Date %m/%d/%y%>." To get your
>>long
>>format, change it to "<%Date  %A %e %B %Y%>." That example has spaces as
>>separators. As the original one shows, you can put whatever separator
>>you'd like to use (slash, comma, etc.) between specifiers.
>>
>>For a full list of the specifiers, see
>>http://en.wikipedia.org/wiki/Date_(Unix) .
>
>Are you really using strftime() format strings or (more likely) Cocoa's
>NSDate format strings? (I can't pin the documentation for the Cocoa ones
>down..)
>
>Chris
>
>