<-- Previous || Up || Next -->

Ship Bells Function
Dates Times Class

Public Function ShipBells( _
    ByVal vTime As Variant _
    ) As Variant

Returns the number of ships bells to be rung at the given time, or zero for none.
Ships rings their bells at half-hour intervals. For all other times, this function returns 0 (zero).

    ShipBells(#7:30:00 AM#) = 7
    ShipBells(#3:30:00 PM#) = 7
    ShipBells(#9:00:23 PM#) = 2
    ShipBells(#9:01:00 PM#) = 0
See also:
    SpellTime Function
vTime: Number whose time component is used to determine the number of ships bells to be rung. Function returns Null if vTime is Null or cannot be fixed up to a number. The time component of vTime is rounded to the nearest minute.

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.