I know the validity field is a 32bit Integer but does the value of 1 = 1 day
All time based fields use seconds as as unit of time.
The dashboard uses days just for convenience, it converts it to seconds before making any network call.
I believe the value is in seconds.