(user)
integer o2user_pwd_expires(string $user)
Returns number of days before user password expiring.
Function can return a negative value, if password already expired.
If no expiration time is set for application or if password never expires for requested user, then function returns (strict) FALSE.
If "last password change" date is not set or flag "force password change" is set for user, then function returns 0 (zero).
If no any user will be passed as parameter then currently logged user will be used.