"Fossies" - the Fresh Open Source Software Archive

Member "dateutils-0.4.6/info/dconv.h2m" (19 Mar 2019, 1298 Bytes) of package /linux/privat/dateutils-0.4.6.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 [EXAMPLES]
    2 
    3   $ dconv 2012-03-01
    4   2012-03-01
    5   $
    6 
    7 
    8   $ dconv -i "%d/%b/%y" 01/Mar/12
    9   2012-03-01
   10   $
   11 
   12 
   13   $ dconv -f "%d/%b/%y" 2012-03-01
   14   01/Mar/12
   15   $
   16 
   17 
   18   $ dconv -f "%d/%b/%y" -i "%OY %Om %Od" "MCMXCVIII IX XVII"
   19   17/Sep/98
   20   $
   21 
   22 
   23   $ dconv 12:03:01
   24   12:03:01
   25   $
   26 
   27 
   28   $ dconv -i "%I:%M:%S %p" "11:22:33 PM"
   29   23:22:33
   30   $
   31 
   32 
   33   $ dconv '2012-03-01 00:00:00'
   34   2012-03-01T00:00:00
   35   $
   36 
   37 
   38   $ dconv 2012-03-01T12:34:56
   39   2012-03-01T12:34:56
   40   $
   41 
   42 
   43   $ dconv --zone America/Chicago <<EOF
   44   2012-03-01T07:05:06
   45   2012-03-01T08:12:34
   46   2012-03-11T01:05:06
   47   2012-03-11T02:05:06
   48   2012-03-11T07:05:06
   49   2012-03-11T08:05:06
   50   2012-03-11T17:05:06
   51   EOF
   52   2012-03-01T01:05:06
   53   2012-03-01T02:12:34
   54   2012-03-10T19:05:06
   55   2012-03-10T20:05:06
   56   2012-03-11T01:05:06
   57   2012-03-11T03:05:06
   58   2012-03-11T12:05:06
   59   $
   60 
   61 
   62   $ dconv --from-zone America/Chicago <<EOF
   63   2012-03-01T01:05:06
   64   2012-03-01T02:12:34
   65   2012-03-10T19:05:06
   66   2012-03-10T20:05:06
   67   2012-03-11T01:05:06
   68   2012-03-11T03:05:06
   69   2012-03-11T12:05:06
   70   EOF
   71   2012-03-01T07:05:06
   72   2012-03-01T08:12:34
   73   2012-03-11T01:05:06
   74   2012-03-11T02:05:06
   75   2012-03-11T07:05:06
   76   2012-03-11T08:05:06
   77   2012-03-11T17:05:06
   78   $
   79 
   80 
   81   $ dconv --from-zone America/Chicago -z Europe/Berlin '2012-03-01 12:00' -i '%F %H:%M' -f '%F %T'
   82   2012-03-01 19:00:00
   83   $
   84