kw

by Tim C. Lueth, SG-Lib Toolbox: SolidGeometry 5.6 - Auxiliary function
Introduced first in SolidGeometry 5.0, Creation date: 2020-09-06, Last change: 2025-09-14

returns the calender week



See Also:

Example Illustration

 missing image of kw(dstr)

Syntax

w=kw([dstr])

Input Parameter

dstr: empty (returns the current kw), # (returns the dates) or date (returns the kw of the date)

Output Parameter

w: week, or dates




Copyright 2020-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth

Algorithm (Workflow)

This function, named kw, is designed to determine the calendar week (KW) based on the input parameters. It is part of the SolidGeometry library and was introduced in version 5.0.

Input Parameters

Output Results

Algorithm Details

The function begins by retrieving the first input parameter using getfuncparams. It then checks the type of dstr:

Algorithm explaination created using ChatGPT on 2025-08-18 22:58. (Please note: No guarantee for the correctness of this explanation)

Last html export of this page out of FM database by TL: 2025-09-21