dateconvert man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]


dateconvert(1)(TDH)					   dateconvert(1)(TDH)

NAME
       dateconvert(1) - convert dates from one notation to another

SYNOPSIS
       dateconvert [-c date] [-f field#] oldformat newformat [-u]

DESCRIPTION
       Can  operate either on a single date given on command line (-c) or as a
       filter on a stream of data (-f), converting dates  in  one  field.   If
       neither	-f  nor	 -c  is specified, then -c is assumed.	Available date
       formats and date notation discussion may be found in  dates  .

OPTIONS
       -c date

	      Command-line mode.  Convert date and write the result  to	 stan‐
	      dard output with no trailing newline.

       -f n

	      Filter  mode.   Read  a stream of data records on standard input
	      and convert the dates found in field n.  Any values  found  that
	      are  invalid  dates will be left alone.  The resulting stream of
	      data records is written to standard output.

       -u

	      Convert underscores to spaces in date results  that  have	 them,
	      such as when full notation is used.

       -w

	      Warn  on	invalid	 dates	in filter mode by appending the string
	      :BAD-DATE to the offending field.

EXAMPLES
       dateconvert -c 021700 mmddyy full -u

	      This would convert 021700 to February 17, 2000

       cat mydate | dateconvert -f 3 mmddyy ddMMMyyyy

	      This would convert every date in field 3 of the data stream from
	      mmddyy format to ddMMMyyyy format.

			 19-SEP-2003   TDH scg@jax.org	   dateconvert(1)(TDH)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net