duration-field specifier

Edwin Groothuis edwin at mavetju.org
Mon Nov 11 07:48:55 CET 2002


I have this report-calc-spec:

 <lire:report-calc-spec>
  <lire:timegroup field="time" period="1M">
   <lire:sum name="session_time-total" field="session_time"/>
  </lire:timegroup>
 </lire:report-calc-spec>

session_time is a duration-type.

It gives me:
  lire:timegroup0                                       session_time-total
  ----------------------------------------------------- ------------------
  June                                                                8.5d
  July                                                                8.5d
  August                                                              9.3d
  September                                                           9.8d
  October                                                            11.8d
  November                                                            1.0d
  ----------------------------------------------------- ------------------

What would be great is to have a way to force the session_time-total
in hours, because in the real world often duration is sold in hours
(ISPs for example :-):

  lire:timegroup0                                       session_time-total
  ----------------------------------------------------- ------------------
  June                                                              204.0h
  July                                                              204.0h
  August                                                            223.2h
  September                                                         235.2h
  October                                                           283.2h
  November                                                           24.0h
  ----------------------------------------------------- ------------------

 <lire:report-calc-spec>
  <lire:timegroup field="time" period="1M">
   <lire:sum name="session_time-total" field="session_time" unit="hours"/>
  </lire:timegroup>
 </lire:report-calc-spec>

Edwin

-- 
Edwin Groothuis      |            Personal website: http://www.MavEtJu.org
edwin at mavetju.org    |    Weblog: http://www.mavetju.org/weblog/weblog.php 
bash$ :(){ :|:&};:   | Interested in MUDs? http://www.FatalDimensions.org/

-- 
To UNSUBSCRIBE, email to development-request at logreport.org with a subject of
"unsubscribe". Trouble? Send an email with subject "help" to
development-request at logreport.org



More information about the Development mailing list