Kbase P26941: How to represent midnight in the 24-hour clock as 24.00 with
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  12/06/2003 |
|
Status: Unverified
GOAL:
How to represent 0.00 in the 24-hour clock as 24.00 with Progress built-in functions
FIX:
12 o'clock midnight is always displayed as 0.00 and Progress TIME-related functions reflect this.
Therefore it is not possible and must be achieved programmatically.
Something similar to the following should do this:
IF SUBSTRING(STRING(intTime,"hh:mm"),1,2) = "00" THEN
dTime = STRING("24") + SUBSTRING(STRING(intTime,"hh:mm"),3,3).
ELSE
dTime = STRING(intTime,"hh:mm").