[ Home | Main Table Of Contents | Table Of Contents | Keyword Index ]

# cmdr::validate::weekday(n) 1 doc "Cmdr, a framework for command line parsing and dispatch"

## Name

cmdr::validate::weekday - Cmdr - Validation type for weekday names

## Table Of Contents

## Synopsis

- package require try
- package require clock::iso8601
- package require cmdr::validate::common
- package require cmdr::validate::weekday

- ::cmdr::validate::time 2external weekday

## Description

Welcome to the Cmdr project, written by Andreas Kupries.

For availability please read Cmdr - How To Get The Sources.

This package provides the validation type ::cmdr::validate::weekday which accepts weekdays as names and numbers.

The internal representation is the numeric weekday for the validated input where 1 to 7 map to Monday to Sunday.

The type has no input completion.

The details of the exported standard API can be found in Cmdr - Writing custom validation types. The chosen default is "today's weekday".

A single non-standard method is provided:

::cmdr::validate::time 2external weekday

  This method converts the numeric weekday to the form %A and returns the conversion result as its own.

## Bugs, Ideas, Feedback

Both the package(s) and this documentation will undoubtedly contain bugs and other problems. Please report such at Cmdr Tickets.

Please also report any ideas you may have for enhancements of either package(s) and/or documentation.

## Keywords

arguments, command hierarchy, command line completion, command line handling, command tree, editing command line, help for command line, hierarchy of commands, interactive command shell, optional arguments, options, parameters, processing command line, tree of commands

## Copyright

Copyright © 2013-2016 Andreas Kupries
Copyright © 2013-2016 Documentation, Andreas Kupries