[Package Index | Mudlib Index | Effect Index]
File /secure/simul_efun/ctime_elapsed.c
Contains a few simul_efuns.
Includes
This class includes the following files /include/player_handler.hMethod index
- ctime_elapsed(int, int)
Returns an amount of time in a pretty format, like "two minutes and
twenty-three seconds".
 - ctime_local(int, mixed)
Shows the time as local for the current user.
 - ctime_to_time(string)
Turns a string returned from ctime() into the corresponding time() timestamp.
 - localtime_local(int, mixed)
Breaks up the time, as per localtime efun, but based on the users
set local time.
 
Public Functions
These are functions that everyone can access.
- 
ctime_elapsed
varargs string ctime_elapsed(int time_elapsed,
                             int mode)
 
Returns an amount of time in a pretty format, like "two minutes and
twenty-three seconds".
- Parameters:
time_elapsed - The number of seconds to describe
mode - If omitted or 0 the numbers are given in digits rather than
letters
- Returns:
A string describing the time elapsed
  
- 
ctime_local
varargs string ctime_local(int secs,
                           mixed player)
 
Shows the time as local for the current user.
The player parameter can be a string or an object.
- Parameters:
secs - the time to show as local
player - defaults to this_player() if 0
- Returns:
a string showing the local time
  
- 
ctime_to_time
int ctime_to_time(string str)
 
Turns a string returned from ctime() into the corresponding time() timestamp.
If the ctime string is invalid a runtime error is produced.
- Parameters:
str - The ctime string to convert
- Returns:
The corresponding timestamp
- See also:
efun::time() and efun::ctime()
   
- 
localtime_local
varargs int * localtime_local(int secs,
                              mixed player)
 
Breaks up the time, as per localtime efun, but based on the users
set local time.  THe player parameter can be a string or an object.
- Parameters:
secs - the time to show as local
player - defaults to this_player() if 0
- Returns:
the localtime array