week(aDate)

Converts timestamp to week of the year.


Syntax

o_week(aDate)
aDate: scalar Timestamp
return: Int

Usage

Determines the week of the year given specified timestamp.

Location

menu: veeos ==> misc ==> week

library: veeosLib

Example

o_week(now()) returns the current week of the year.

Notes

VEE has built-in functions for day, month, year, but not time. This helps complete the set of Time/Date functions. Week in this case is defined by ISO-8601. Original version posted to VRF by Delmar Fryd in November 2012.

Reference

Supported On

VEE 7.0+, All platforms.

See Also

time


© 2015-2025. All Rights Reserved. Stan Bischof (stan@worldbadminton.com). Last updated 13 February 2024 08:50.