Algosim documentation: WeeksBetween

WeeksBetween

Computes the number of weeks between two points in time.

Syntax

Description

If t and s are DateTime structures or timestamps, then WeeksBetween(t, s) returns the (in general non-integral) number of weeks between t and s, irrespective of the order of t and s.

Examples

WeeksBetween(yesterday(), today())
0.142857142857	(=1/7)