Baanboard.com

Go Back   Baanboard.com

User login

Frontpage Sponsor

Main

Google search


Poll
How big is your Baan-DB (just Data AND Indexes)
0 - 200 GB
18%
200 - 500 GB
26%
500 - 800 GB
3%
800 - 1200 GB
9%
1200 - 1500 GB
12%
1500 - 2000 GB
12%
> 2000 GB
21%
Total votes: 34

Baanboard at LinkedIn


Reference Content

 
utc.to.week()
By patvdv at 26 Feb 2008 - 21:57

utc.to.week()

Syntax

long utc.to.week( long utc, ref long week_dayno, ref long year_dayno,
       ref long weekno, ref long hours, ref long minutes, ref long seconds [, ref long
       yearno] )

Description

This converts a UTC long format value to the corresponding day of the week, day of the year, week of the year, and so on, in local time.

Arguments

dayno

The UTC long format value.

week_dayno

The day of the week. This depends on which day is defined as the first day of the week in the user data settings in the data dictionary.

year_dayno

The day number in the year.

weekno

The week number in the year. See Week handling.

hours, minutes, seconds

The time of day.

yearno

The year number. This argument is optional.

Notes

If the day of the week lies in the week that includes the turn of the year, weekno returns either 53, 0, or 1. The rules applied are:

  • Yearno argument included
    • If less that 4 days of the week belong to the old year, weekno returns 1 and yearno returns the number of the new year.
    • If 4 or more days belong to the old year, weekno returns 53 and yearno returns the number of the old year.
  • Yearno argument not included
    • If the day belongs to the old year, weekno returns 53.
    • If the day belongs to the new year and there are less that 4 days of the new year in the week, weekno returns 0.
    • If the day belongs to the new year and there are more that 3 days of the new year in the week, weekno returns 1.

Return values

0

Success.

-1

Error.

Context

3GL library function.

Related topics


0
No votes yet


All times are GMT +2. The time now is 06:56.


©2001-2018 - Baanboard.com - Baanforums.com