#include <DateTime.hpp>
Metody publiczne | |
| TIMESPAN () | |
| Tworzy niezainicjalizowaną. | |
| TIMESPAN (int8 Diff) | |
| Tworzy i inicjalizuje liczbą milisekund. | |
| TIMESPAN (int Hours, int Minutes, int8 Seconds, int8 Milliseconds=0) | |
| Tworzy i inicjalizuje podanymi wartościami (zakres dowolny, niekoniecznie 0..59 ani nic takiego). | |
| void | Set (int8 Diff) |
| void | Set (int Hours, int Minutes, int8 Seconds, int8 Milliseconds=0) |
| bool | operator== (const TIMESPAN &t) const |
| bool | operator!= (const TIMESPAN &t) const |
| bool | operator<= (const TIMESPAN &t) const |
| bool | operator>= (const TIMESPAN &t) const |
| bool | operator< (const TIMESPAN &t) const |
| bool | operator> (const TIMESPAN &t) const |
| TIMESPAN | operator- () const |
| TIMESPAN & | operator*= (int n) |
| TIMESPAN & | operator+= (const TIMESPAN &t) |
| TIMESPAN & | operator-= (const TIMESPAN &t) |
| bool | IsShorterThan (const TIMESPAN &t) const |
| Porównywanie wartości bezwzględnej. | |
| bool | IsLongerThan (const TIMESPAN &t) const |
| Porównywanie wartości bezwzględnej. | |
| bool | IsNull () const |
| bool | IsPositive () const |
| bool | IsNegative () const |
| int | GetWeeks () const |
| int | GetDays () const |
| int | GetHours () const |
| int | GetMinutes () const |
| int8 | GetSeconds () const |
| int8 | GetMilliseconds () const |
| TIMESPAN | Abs () const |
| Zwraca nowy TIMESPAN - wartość bezwzględna. | |
| void | ToString (tstring *Out, bool ShowMilliseconds=false) const |
| Przetwarza ten odcinek czasu na łańcuch w postaci formalnej: "0:00:00" (H:MM:SS) lub z milisekundami: "0:00:00:0000" (H:MM:SS:IIII). | |
| void | ToString_Nice (tstring *Out) const |
| Przetwarza ten odcinek czasu na łańcuch w postaci przyjaznej, np. "2:55 h", "3:10 min", "20 s". | |
Statyczne metody publiczne | |
TIMESPAN dla podanego odcinka czasu | |
| static TIMESPAN | Milliseconds (int8 Milliseconds) |
| static TIMESPAN | Millisecond () |
| static TIMESPAN | Seconds (int8 Seconds) |
| static TIMESPAN | Second () |
| static TIMESPAN | Minutes (int Minutes) |
| static TIMESPAN | Minutes () |
| static TIMESPAN | Hours (int Hours) |
| static TIMESPAN | Hour () |
| static TIMESPAN | Days (int Days) |
| static TIMESPAN | Day () |
| static TIMESPAN | Weeks (int Weeks) |
| static TIMESPAN | Week () |
Atrybuty publiczne | |
| int8 | m_Diff |
| W milisekundach. | |
| common::TIMESPAN::TIMESPAN | ( | ) | [inline] |
Tworzy niezainicjalizowaną.
| common::TIMESPAN::TIMESPAN | ( | int8 | Diff | ) | [inline, explicit] |
Tworzy i inicjalizuje liczbą milisekund.
Tworzy i inicjalizuje podanymi wartościami (zakres dowolny, niekoniecznie 0..59 ani nic takiego).
| static TIMESPAN common::TIMESPAN::Millisecond | ( | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Second | ( | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Minutes | ( | int | Minutes | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Minutes | ( | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Hours | ( | int | Hours | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Hour | ( | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Days | ( | int | Days | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Day | ( | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Weeks | ( | int | Weeks | ) | [inline, static] |
| static TIMESPAN common::TIMESPAN::Week | ( | ) | [inline, static] |
| void common::TIMESPAN::Set | ( | int8 | Diff | ) | [inline] |
| bool common::TIMESPAN::operator== | ( | const TIMESPAN & | t | ) | const [inline] |
| bool common::TIMESPAN::operator!= | ( | const TIMESPAN & | t | ) | const [inline] |
| bool common::TIMESPAN::operator<= | ( | const TIMESPAN & | t | ) | const [inline] |
| bool common::TIMESPAN::operator>= | ( | const TIMESPAN & | t | ) | const [inline] |
| bool common::TIMESPAN::operator< | ( | const TIMESPAN & | t | ) | const [inline] |
| bool common::TIMESPAN::operator> | ( | const TIMESPAN & | t | ) | const [inline] |
| TIMESPAN common::TIMESPAN::operator- | ( | ) | const [inline] |
| TIMESPAN& common::TIMESPAN::operator*= | ( | int | n | ) | [inline] |
| bool common::TIMESPAN::IsShorterThan | ( | const TIMESPAN & | t | ) | const [inline] |
Porównywanie wartości bezwzględnej.
| bool common::TIMESPAN::IsLongerThan | ( | const TIMESPAN & | t | ) | const [inline] |
Porównywanie wartości bezwzględnej.
| bool common::TIMESPAN::IsNull | ( | ) | const [inline] |
| bool common::TIMESPAN::IsPositive | ( | ) | const [inline] |
| bool common::TIMESPAN::IsNegative | ( | ) | const [inline] |
| int common::TIMESPAN::GetWeeks | ( | ) | const [inline] |
| int common::TIMESPAN::GetDays | ( | ) | const [inline] |
| int common::TIMESPAN::GetHours | ( | ) | const [inline] |
| int common::TIMESPAN::GetMinutes | ( | ) | const [inline] |
| int8 common::TIMESPAN::GetSeconds | ( | ) | const [inline] |
| int8 common::TIMESPAN::GetMilliseconds | ( | ) | const [inline] |
| void common::TIMESPAN::ToString | ( | tstring * | Out, | |
| bool | ShowMilliseconds = false | |||
| ) | const |
Przetwarza ten odcinek czasu na łańcuch w postaci formalnej: "0:00:00" (H:MM:SS) lub z milisekundami: "0:00:00:0000" (H:MM:SS:IIII).
| void common::TIMESPAN::ToString_Nice | ( | tstring * | Out | ) | const |
Przetwarza ten odcinek czasu na łańcuch w postaci przyjaznej, np. "2:55 h", "3:10 min", "20 s".
W milisekundach.
1.5.5