Re: Format of date in document data
Chris Ridd <[email protected]> Tue, 07 Feb 2012 10:10:55 +0000
| Newsgroups | gmane.comp.graphics.omnigraffle.user |
|---|---|
| Message-ID | <CB56A7CA.27C16%[email protected]> |
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