<RetVar> = format time: <Var/Number>

This forum serves as MSCI Reference at EGOSOFT. It's Read-Only for non MSCI Group members.

Moderators: Scripting / Modding Moderators, MSCI Moderators

Locked
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

<RetVar> = format time: <Var/Number>

Post by mark_a_condren » Fri, 17. Sep 10, 12:10

<RetVar> = format time: <Var/Number>


<RetVar> = The variable name that will contain the formatted time.
<Var/Number> = The number that is to be converted into the time format.


Returns a formated time layout from the number of seconds input with <Var/Number>.

Format; Days, Hours, Minutes, Seconds. (Days only displayed if required) 0 00:00:00


Example:

$playing.time = playing time
$fmt.playing.time = format time: $playing.time

When sending the player a message you may wish to include the time the message was sent or the elapsed time in relation to some other event, this would be the command to use to format the time into an easy to read format.


Command Location:

User avatar
X2-Illuminatus
Moderator (Deutsch)
Moderator (Deutsch)
Posts: 24949
Joined: Sun, 2. Apr 06, 16:38
x4

[TiP][49] 287065

Post by X2-Illuminatus » Mon, 11. Oct 10, 16:05

<RetVar> = format time: <Var/Number>


<RetVar> = Der Name der Variable, die die formatierte Zeit enthalten wird.
<Var/Number> = Die Zahl, die in das Zeitformat formatiert wird.


Gibt eine formatierte Zeitanzeige der Sekundenzahl aus, die mit <Var/Number> eingegeben wurde.

Format: Tage, Stunden, Minuten, Sekunden. (Tage werden nur angezeigt, wenn nötig) 0 00:00:00


Beispiel:

$playing.time = playing time
$fmt.playing.time = format time: $playing.time

Wenn du dem Spieler eine Nachricht sendest, möchtest du womöglich die Zeit, zu der die Nachricht erstellt wurde, oder die seit einem anderen Ereignis vergangene Zeit einfügen. Dies wäre der richtige Befehl, um die Zeit in eine einfach zu lesende Anzeige zu formatieren.


Zu finden unter:

Locked

Return to “MSCI Reference”