-
yad > les calendriers
yad --calendar
RÉCUPÉRER LA DATE
#!/bin/sh THEDATE=`yad --calendar` yad --text="Date sélectionnée : $THEDATE"
format de sortie
la sortie sera normalement de cette forme :
25/01/15Pour changer le format de sortie :
yad --calendar --date-format=%d%m%y
250115liste des formats de sortie
%%a literal%
%alocale’s abbreviated weekday name (Sun..Sat)
%Alocale’s full weekday name, variable length (Sunday Saturday)
%blocale’s abbreviated month name (Jan Dec)
%Blocale’s full month name, variable length (January December)
%clocale’s date and time (Sat Nov 04 12:02:33 EST 1989)
%dday of month (01..31)
%Ddate (mm/dd/yy)
%eday of month, blank padded ( 1..31)
%hsame as %b, locale’s abbreviated month name (Jan..Dec)
%Hhour :24 hour(00..23)
%Ihour :12 hour(01..12)
%jday of year (001..366)
%kheure :24 heures (00..23)
%lheure :12 heures (01..12)
%mmonth (01..12)
%Mminute (00..59)
%na newline
%plocale’s AM or PM
%rTime, 12-hour (hh:mm:ss [AP]M)
%sSeconds since 1970-01-01 00:00:00, (a GNU extension)
Note that this value is defined by the localtime system
call. It isn’t changed by the ‘--date’ option.
%Ssecond (00..60)
%ta horizontal tab
%TTime, 24-hour (hh:mm:ss)
%Unuméro de la semaine. Avec Dimanche comme premier jour de la semaine (00..53)
%Vnuméro de la semaine. Avec Lundi comme premier jour de la semaine (01..53). If the week containing January 1 has four or more days in the new year, then it is considered week 1; otherwise, it is week 53 of the previous year, and the next week is week 1.%wday of week (0..6); 0 represents Sunday
%Wweek number of year with Monday as first day of week (00..53)
%xlocale’s date representation (mm/dd/yy)
%Xlocale’s time representation (%H:%M:%S)
%ylast two digits of year (00..99)
%Yyear (1970)
%ZTime offset from UTC (-07) This generally consists of Time Zone+DSTPRÉSÉLECTIONNER UNE DATE
le jour
yad --calendar --day=20
yad --calendar --month=2
yad --calendar --year=2012
cumulé
yad --calendar --year=2012 --month=2 --day=21
--show-weeksShow the week numbers at the left side of calendar.--details=FILENAMERead days description fromFILENAME. File with days details must be in following format:<date> <description>
datefield is date in format, specified with--date-formatoption.descriptionis a string with date details, which may include Pango markup.