• 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/15

       

      Pour changer le format de sortie :

       

      yad --calendar --date-format=%d%m%y
      250115

      liste des formats de sortie

      %% a literal %
      %a locale’s abbreviated weekday name (Sun..Sat)
      %A locale’s full weekday name, variable length (Sunday Saturday)
      %b locale’s abbreviated month name (Jan  Dec)
      %B locale’s full month name, variable length (January December)
      %c locale’s date and time (Sat Nov 04 12:02:33 EST 1989)
      %d day of month (01..31)
      %D date (mm/dd/yy)
      %e day of month, blank padded ( 1..31)
      %h same as %b, locale’s abbreviated month name (Jan..Dec)
      %H hour :24 hour(00..23)
      %I hour :12 hour(01..12)
      %j day of year (001..366)
      %k heure :24 heures (00..23)
      %l heure :12 heures (01..12)
      %m month (01..12)
      %M minute (00..59)
      %n a newline
      %p locale’s AM or PM
      %r Time, 12-hour (hh:mm:ss [AP]M)
      %s Seconds 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.
      %S second (00..60)
      %t a horizontal tab
      %T Time, 24-hour (hh:mm:ss)
      %U numéro de la semaine. Avec Dimanche comme premier jour de la semaine (00..53)
      %V numé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.

      %w day of week (0..6); 0 represents Sunday
      %W week number of year with Monday as first day of week (00..53)
      %x locale’s date representation (mm/dd/yy)
      %X locale’s time representation (%H:%M:%S)
      %y last two digits of year (00..99)
      %Y year (1970)
      %Z Time offset from UTC (-07) This generally consists of Time Zone+DST

      PRÉ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-weeks Show the week numbers at the left side of calendar.

       

      --details=FILENAME Read days description from FILENAME. File with days details must be in following format:

      <date> <description> date field is date in format, specified with --date-format option. description is a string with date details, which may include Pango markup.

 

Aucun commentaire

 

Laissez un commentaire