Insert

TEA Manual
Prev | Chapter 9. Functions | Next

# 9.13. Insert

*Now playing* string from Amarok - does this. Please note that you can customize the format-string at Preferences > Functions > Now Playing string format. There is %s macro that means artist and song names.

Dump menu - write all menu items names into the new file. It is useful when you want to add some entries into the hotkeys config.

Date/Time - inserts a date/time in a giver format. The format must be defined by you in the Preferences > Functions > Date And Time Format

A quote from Edition 0.10, last updated 2001-07-06, of The GNU C Library Reference Manual, for Version 2.2.x of the GNU C Library (the quoted text is edited, to make it short, by Roxton):

- %a - The abbreviated weekday name according to the current locale.

- %A - The full weekday name according to the current locale.

- %b - The abbreviated month name according to the current locale.

- %B - The full month name according to the current locale.

- %c - The preferred calendar time representation for the current locale.

- %C - The century of the year. This is equivalent to the greatest integer not greater than the year divided by 100.

- %d - The day of the month as a decimal number (range 01 through 31).

- %D - The date using the format %m/%d/%y.

- %e - The day of the month like with %d, but padded with blank (range 1 through 31).

- %F - The date using the format %Y-%m-%d. This is the form specified in the ISO 8601 standard and is the preferred form for all uses.

- %g - The year corresponding to the ISO week number, but without the century (range 00 through 99). This has the same format and value as %y, except that if the ISO week number (see %V) belongs to the previous or next year, that year is used instead.

- %G - The year corresponding to the ISO week number. This has the same format and value as %Y, except that if the ISO week number (see %V) belongs to the previous or next year, that year is used instead.

- %h - The abbreviated month name according to the current locale. The action is the same as for %b.

- %H - The hour as a decimal number, using a 24-hour clock (range 00 through 23).

- %I - The hour as a decimal number, using a 12-hour clock (range 01 through 12).

- %j - The day of the year as a decimal number (range 001 through 366).

- %k - The hour as a decimal number, using a 24-hour clock like %H, but padded with blank (range 0 through 23). This format is a GNU extension.

- %l - The hour as a decimal number, using a 12-hour clock like %I, but padded with blank (range 1 through 12). This format is a GNU extension.

- %m - The month as a decimal number (range 01 through 12).

- %M - The minute as a decimal number (range 00 through 59).

- %n - A single \n (newline) character.

- %p - Either AM or PM, according to the given time value; or the corresponding strings for the current locale. Noon is treated as PM and midnight as AM.

- %P - Either am or pm, according to the given time value; or the corresponding strings for the current locale, printed in lowercase characters. Noon is treated as pm and midnight as am.

- %r - The complete calendar time using the AM/PM format of the current locale.

- %R - The hour and minute in decimal numbers using the format %H:%M.

- %s - The number of seconds since the epoch, i.e., since 1970-01-01 00:00:00 UTC. Leap seconds are not counted unless leap second support is available. This format is a GNU extension.

- %S - The seconds as a decimal number (range 00 through 60).

- %t - A single \t (tabulator) character.

- %T - The time of day using decimal numbers using the format %H:%M:%S.

- %u - The day of the week as a decimal number (range 1 through 7), Monday being 1.

- %U - The week number of the current year as a decimal number (range 00 through 53), starting with the first Sunday as the first day of the first week. Days preceding the first Sunday in the year are considered to be in week 00.

- %V - The ISO 8601:1988 week number as a decimal number (range 01 through 53). ISO weeks start with Monday and end with Sunday. Week 01 of a year is the first week which has the majority of its days in that year; this is equivalent to the week containing the year's first Thursday, and it is also equivalent to the week containing January 4. Week 01 of a year can contain days from the previous year. The week before week 01 of a year is the last week (52 or 53) of the previous year even if it contains days from the new year.

- %w - The day of the week as a decimal number (range 0 through 6), Sunday being 0.

- %W - The week number of the current year as a decimal number (range 00 through 53), starting with the first Monday as the first day of the first week. All days preceding the first Monday in the year are considered to be in week 00.

- %x - The preferred date representation for the current locale.

- %X - The preferred time of day representation for the current locale.

- %y - The year without a century as a decimal number (range 00 through 99). This is equivalent to the year modulo 100.

- %Y - The year as a decimal number, using the Gregorian calendar. Years before the year 1 are numbered 0, -1, and so on.

- %z - RFC 822/ISO 8601:1988 style numeric time zone (e.g., -0600 or +0100), or nothing if no time zone is determinable.A full RFC 822 timestamp is generated by the format "%a, %d %b %Y %H:%M:%S %z" (or the equivalent "%a, %d %b %Y %T %z").

- %Z - The time zone abbreviation (empty if the time zone can't be determined).

- %% - A literal % character.

By default TEA uses "%d/%m/%Y %T" as the formatting string, so date_time=%d/%m/%Y %T

Prev | Home | Next
Format | Up | Case