see from these scripts
PBDayNight.isNight?() - Returns true if it's night (from sunset to sunrise)
PBDayNight.isDay?() - Returns true if it's day (from sunrise to sunset)
PBDayNight.isMorning?() - Returns true if it's morning (from sunrise to high noon)
PBDayNight.isAfternoon?() - Returns true if it's the afternoon (from high noon to sunset)
PBDayNight.getShade() - Returns a value from 0 through 255, where 0 is full night and 255 is full day.