nstcl  >  Documentation  >  nstcl-time  >  last_day_of_week

Tcl Powered!

last_day_of_week

NAME

last_day_of_week — Returns the last day of a week

SYNOPSIS

package require nstcl-time ?1.0.1?
package require nstcl ?1.0?

::nstcl::last_day_of_week ?-format format? date

DESCRIPTION

Returns the last day of the week containing the given date. The format of date can be anything that [clock scan] can parse.

OPTIONAL SWITCH

-format (defaults to %Y-%m-%d)
Specifies the format that the last day of the week should be returned in. Consult the documentation for the [clock format] command for a list of valid field descriptors.

KEYWORDS

nstcl, time