This page is a reference for use when setting up an ONIX template. For example, entering snowbooks_[%j%Y].xml into the File name pattern field produces files named like snowbooks_0112015.xml.
ONIX file name pattern options
| Type | Code | Meaning |
|---|---|---|
| Date (Year, Month, Day): | %Y | Year with century |
| %C | Century: year / 100 rounded down. (20 in 2009) | |
| %y | year % 100 (00..99) | |
| %m | Month of the year, zero-padded (01..12) | |
| %_m | blank-padded ( 1..12) | |
| %-m | no-padded (1..12) | |
| %B | The full month name (January) | |
| %b | The abbreviated month name (Jan) | |
| %d | Day of the month, zero-padded (01..31) | |
| %-d | no-padded (1..31) | |
| %e | Day of the month, blank-padded ( 1..31) | |
| %j | Day of the year (001..366) | |
| Time (Hour, Minute, Second): | %H | Hour of the day, 24-hour clock, zero-padded (00..23) |
| %k | Hour of the day, 24-hour clock, blank-padded ( 0..23) | |
| %I Hour of the day, 12-hour clock, zero-padded (01..12) | ||
| %l Hour of the day, 12-hour clock, blank-padded ( 1..12) | ||
| %P | Meridian indicator, lowercase (am or pm) | |
| %p | Meridian indicator, uppercase (AM or PM) | |
| %M | Minute of the hour (00..59) | |
| %S | Second of the minute (00..59) | |
| Time zone: | %z | Time zone as hour and minute offset from UTC (e.g. +0900) |
| %:z | hour and minute offset from UTC with a colon (e.g. +09:00) | |
| %::z | hour, minute and second offset from UTC (e.g. +09:00:00) | |
| %:::z | hour, minute and second offset from UTC (e.g. +09, +09:30, +09:30:30) | |
| %Z | Time zone abbreviation name | |
| Weekday: | %A | The full weekday name (Sunday) |
| %a | The abbreviated name (Sun) | |
| %u | Day of the week (Monday is 1, 1..7) | |
| %w | Day of the week (Sunday is 0, 0..6) | |
| ISO 8601 week-based year and week number | %G | The week-based year |
| %g | The last 2 digits of the week-based year (00..99) | |
| %V | Week number of the week-based year (01..53) | |
| Week number: | %U | Week number of the year. The week starts with Sunday. (00..53) |
| %W | Week number of the year. The week starts with Monday. (00..53) | |
| Seconds since the Unix Epoch: | %s | |
| %s | Number of seconds since 1970-01-0100:00:00 UTC |
|
| Combination: | %c | date and time (%a %b %e %T %Y) |
| %D | Date (%m/%d/%y) | |
| %F | The ISO 8601 date format (%Y-%m-%d) | |
| %v | VMS date (%e-%b-%Y) | |
| %r | 12-hour time (%I:%M:%S %p) | |
| %R | 24-hour time (%H:%M) | |
| %T | 24-hour time (%H:%M:%S) | |
| %+ | date(1) (%a %b %e %H:%M:%S %Z %Y)“) |