-
time_3(credit):- Description: This function calculates the time based on a given credit value.
- Parameters:
Credit(float): The credit value used to calculate the time.
- Returns:
- If the
creditvalue is within the range of 9 (exclusive) to 13.5 (inclusive), the function returns a string representing the time in the format "hour:minute". The time is calculated by subtracting thecreditvalue from 13.5 and converting it to minutes. For example, if thecreditvalue is 10, the function returns "9:30" since 13.5 - 10 is 3.5, equal to 210 minutes (3.5 * 60), representing 9 hours and 30 minutes. - If the
creditvalue is not within the specified range, the function returns the string'not right time'.
- If the
-
time_2(credit):- Description: This function calculates the time based on a given credit value.
- Parameters:
credit(float): The credit value used to calculate the time.
- Returns:
- If the
creditvalue is within the range of 4 (exclusive) to 8.5 (inclusive), the function returns a string representing the time in the format "hour:minute". The time is calculated by subtracting thecreditvalue from 8.5 and converting it to minutes. For example, if thecreditvalue is 6, the function returns "9:30" since 8.5 - 6 is 2.5, equal to 150 minutes (2.5 * 60), representing 9 hours and 30 minutes. - If the
creditvalue is not within the specified range, the function returns the string'not right time'.
- If the
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|