#compdef uu-date

autoload -U is-at-least

_uu-date() {
    typeset -A opt_args
    typeset -a _arguments_options
    local ret=1

    if is-at-least 5.2; then
        _arguments_options=(-s -S -C)
    else
        _arguments_options=(-s -C)
    fi

    local context curcontext="$curcontext" state line
    _arguments "${_arguments_options[@]}" \
'-d+[display time described by STRING, not '\''now'\'']' \
'--date=[display time described by STRING, not '\''now'\'']' \
'-f+[like --date; once for each line of DATEFILE]' \
'--file=[like --date; once for each line of DATEFILE]' \
'-I+[output date/time in ISO 8601 format.
 FMT='\''date'\'' for date only (the default),
 '\''hours'\'', '\''minutes'\'', '\''seconds'\'', or '\''ns'\''
 for date and time to the indicated precision.
 Example: 2006-08-14T02:34:56-06:00]' \
'--iso-8601=[output date/time in ISO 8601 format.
 FMT='\''date'\'' for date only (the default),
 '\''hours'\'', '\''minutes'\'', '\''seconds'\'', or '\''ns'\''
 for date and time to the indicated precision.
 Example: 2006-08-14T02:34:56-06:00]' \
'--rfc-3339=[output date/time in RFC 3339 format.
 FMT='\''date'\'', '\''seconds'\'', or '\''ns'\''
 for date and time to the indicated precision.
 Example: 2006-08-14 02:34:56-06:00]' \
'-r+[display the last modification time of FILE]' \
'--reference=[display the last modification time of FILE]' \
'-s+[set time described by STRING]' \
'--set=[set time described by STRING]' \
'-R[output date and time in RFC 5322 format.
 Example: Mon, 14 Aug 2006 02:34:56 -0600]' \
'--rfc-email[output date and time in RFC 5322 format.
 Example: Mon, 14 Aug 2006 02:34:56 -0600]' \
'--debug[annotate the parsed date, and warn about questionable usage to stderr]' \
'-u[print or set Coordinated Universal Time (UTC)]' \
'--universal[print or set Coordinated Universal Time (UTC)]' \
'-h[Prints help information]' \
'--help[Prints help information]' \
'-V[Prints version information]' \
'--version[Prints version information]' \
'::format:_files' \
&& ret=0
    
}

(( $+functions[_uu-date_commands] )) ||
_uu-date_commands() {
    local commands; commands=(
        
    )
    _describe -t commands 'uu-date commands' commands "$@"
}

_uu-date "$@"