The digital SBB clock is used in web applications or on dynamic customer information channels on the train or at the station. It imitates the motion of the physical SBB clock and adapts its design. The SBB station clock is protected by trade mark and copyright law.
It may only be used by all Swiss infrastructure managers (IMs) and licensed transport companies (LTCs). It must be used exactly as it is specified.
The clock should be placed on a solid-colour background; it should not be placed on pictures or graphics. On light backgrounds, the clock face is visually separated from the background using a grey frame; the version without the frame should be used on dark backgrounds.
The SBB clock gives the system time of the display unit in analogue form. The system time should be taken from a reliable time server, if this can be influenced.
The sbb-clock
component displays an analog clock face in the style of the classic SBB station clock.
It mimics its behavior too, completing a rotation in approximately 58.5 seconds,
then it briefly pauses at the clock top before starting a new rotation.
<sbb-clock></sbb-clock>
To simulate the current time, you can use the now
property
which accepts a time string like HH:MM:SS
.
This is helpful if you need a specific state of the component.
<sbb-clock now="23:23:00"></sbb-clock>
Name | Attribute | Privacy | Type | Default | Description |
---|---|---|---|---|---|
now | now | public | SbbTime | null | null | Define a specific time which the clock should show statically. |