From the NannyMUD documentation

LAST CHANGE

2001-09-29

NAME

        timed_hooks - Timed hooks

LOCATION

    /obj/util/timed.c

AVAILABILITY

    Any object can use hooks.

FUNCTIONS

OTHER FUNCTIONS

    timed_new_year_hook
    timed_new_season_hook
    timed_new_month_hook
    timed_new_week_hook
    timed_new_moon_phase_hook
    timed_new_day_hook
    timed_new_part_of_day_hook
    timed_new_hour_hook

DESCRIPTION

    Whenever a Nanny 
    - year
    - season
    - month/
    - moon phase
    - week
    - day
    - part of day
    - hour
    has passed and we entered a new one.

NOTE

    Remember that these hooks must be registred after reboots to stay
    in the timed daemon.

SEE ALSO

        timed in daemon/timed

FUNCTION


NAME

        timed_new_year_hook - New year hook

SYNTAX

void timed_new_year_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny year
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old year nr, 
        New year nr }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_season_hook - New season hook

SYNTAX

void timed_new_season_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny season
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old season string,
        New season string }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_month_hook - New month hook

SYNTAX

void timed_new_month_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny month
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old month nr,
        New month nr,
        Old season string,
        New season string }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_moon_phase_hook - New moon phase hook

SYNTAX

void timed_new_moon_phase_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny moon phase
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old phase str,
        New phase str, }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_week_hook - New week hook

SYNTAX

void timed_new_week_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny week
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old week nr,
        New week nr, }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_day_hook - New day hook

SYNTAX

void timed_new_day_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny day
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old day nr,
        New day nr, }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_part_of_day_hook - New part of day hook

SYNTAX

void timed_new_part_of_day_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny part of day
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old day part string,
        New day part string }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.

FUNCTION


NAME

        timed_new_hour_hook - New hour hook

SYNTAX

void timed_new_hour_hook(mixed arr, object timed)

DESCRIPTION

    Whenever a Nanny hour
    has passed and we entered a new one.

    The arguments to the hook are as follows:
      ({Old hour nr,
        New hour nr,
        Old day part string,
        New day part string }),
      Timed

NOTE

    Remember that the hook must be registered after reboots to stay
    in the timed daemon.