
FORMAT_TIME(2)             silmul_efun            FORMAT_TIME(2)

名稱
     format_time - 把參數整數轉換成時間的格式

語法
     string format_time(int tm, int verbose);

描述
     Given a number of seconds in tm, format_time returns one  of
     the following strings:

     if verbose is TRUE (non-zero), returns a string such as

        "1 day 3 hours 7 minutes 18 seconds"

     if verbose is FALSE (zero), returns an  abbreviated  string,
     such as

        "1d 3h 7m 18s"

     Counts years, weeks,  days,  hours,  minutes,  and  seconds.
     Zero  values  are omitted; e.g. "3 hours 44 seconds", not "0
     years 0 weeks 0 days 3 hours 0 minutes 44 seconds".

作者
     Ichabod@TMI, 2/15/93
     wade@future 4/7/1996 翻譯

MudOS Release 0.9         Last change:                   3-19-93

