ph_trimeventlog PowerHome formula function
Description
Trims the eventlog to the specified number of days.
Syntax
ph_trimeventlog ( n )
Argument Description
n A long representing the number of days of data to keep.
Return value
Integer. Returns a 0 if successful and a 1 if an error occurs. The number of days to keep is dependent upon the current date. If a value of 1 is passed and the current date is July 5, 2002 and the time is 00:15, then the event log will only contain 1 days worth of data (the current day) or actually only the first 15 minutes of July 5, 2002. A value of 2 would contain any data on July 5, 2002 and all data on July 4, 2002.