inweek - funzione dello script e del grafico
Questa funzione restituisce True se timestamp ricade all'interno della settimana contenente base_date.
Sintassi:
InWeek (timestamp, base_date, period_no[, first_week_day])
Tipo di dati restituiti: Booleano
Argomenti:
Argomento | Descrizione |
---|---|
timestamp | La data da confrontare con base_date. |
base_date | La data utilizzata per valutare la settimana. |
period_no | La settimana può essere differita mediante period_no. period_no è un numero intero, in cui il valore 0 indica la settimana che contiene base_date. I valori negativi di period_no indicano le settimane precedenti, mentre i valori positivi indicano le settimane successive. |
first_week_day |
By default, the first day of the week is Sunday (as determined by the FirstWeekDay system variable), starting at midnight between Saturday and Sunday. The first_week_day parameter supersedes the FirstWeekDay variable. To indicate the week starting on another day, specify a flag between 0 and 6.For a week starting on Monday and ending on Sunday, use a flag of 0 for Monday, 1 for Tuesday, 2 for Wednesday, 3 for Thursday, 4 for Friday, 5 for Saturday, and 6 for Sunday. Per impostazione predefinita, il primo giorno della settimana è lunedì, con inizio alla mezzanotte tra domenica e lunedì. Per indicare un altro giorno per l'inizio della settimana, specificare un differimento in first_week_day. Tale valore può essere fornito come numero completo indicante i giorni e/o le frazioni di un giorno. |