Explanation:$cond is a ternary operator that evaluates one expression, and depending on the result, returns the value of one of the other two expressions. 6. Which of the following returns the hour for a date as a number between 0 and 23 ?
A. $minute
B. $hour
C. $seconds
D. All of the mentioned
Answer:A
Explanation:$cond is a ternary operator that evaluates one expression, and depending on the result, returns the value of one of the other two expressions. 6. Which of the following returns the hour for a date as a number between 0 and 23 ?
A. $minute B. $hour C. $seconds D. All of the mentioned
Explanation:The argument in hour statement can be any expression as long as it resolves to a date. 7. __________ returns the date as a formatted string.