# *********************************************************************
# Written by and copyright Carlo Strozzi <carlos@linux.it>.
#
# ctime.txt: help text
# Copyright (C) 2001-2002 Carlo Strozzi <carlos@linux.it>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
# *********************************************************************
# $Id: ctime.txt,v 1.2 2003/03/17 10:10:44 carlo Exp $

                     NoSQL operator: ctime

Takes a column containing the No. of seconds since the epoch and turns
it into local time values.

Usage: ctime [options] column

Options:
    --input (-i) 'file'
      Read input from 'file' instead of STDIN.

    --output (-o) 'file'
      Write output to 'file' instead of STDOUT.

    --help (-h)
      Print this help info.

    --no-header (-N)
      Suppress header from output table.

    --format (-F) string
      Use 'string' as the output date format. See date(1).

Example:

$ cat input.rdb
column1 column2
------- -------
goofy   1004150993
minnie  1004167382

$ ctime --input input.rdb column2
column1 column2
------- -------
goofy   Sat Oct 27 05:49:53 CEST 2001
minnie  Sat Oct 27 10:23:02 CEST 2001

$ ctime --input input.rdb --format "%Y-%m-%d" column2
column1 column2
------- -------
goofy   2001-10-27
minnie  2001-10-27


