summaryrefslogtreecommitdiff
path: root/UCoreUtils.pas
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-06-10 16:07:22 +0200
committerTomas Bzatek <tbzatek@tbzatek.englab.brq.redhat.com>2008-06-10 16:07:22 +0200
commite404b904c14a9e7bd0eb50b2c90155fd69f13198 (patch)
treeff4aec1abb40b091902f2cced7a956cd5c54bac0 /UCoreUtils.pas
parentd786d5426e74a1d5291f88e66abe8352e5f22ad1 (diff)
downloadtuxcmd-e404b904c14a9e7bd0eb50b2c90155fd69f13198.tar.xz
Cleanup.
Diffstat (limited to 'UCoreUtils.pas')
-rw-r--r--UCoreUtils.pas11
1 files changed, 0 insertions, 11 deletions
diff --git a/UCoreUtils.pas b/UCoreUtils.pas
index 4beec94..6ee28d4 100644
--- a/UCoreUtils.pas
+++ b/UCoreUtils.pas
@@ -56,7 +56,6 @@ const ConstERRSpawn = 26;
function GetErrorString(ErrorNo: integer): string;
function GetSignalString(SignalNo: integer): string;
-function UnixTimeToTDateTime(UnixTime: Int64): TDateTime;
function FormatSize(Value: Int64; Base: integer; OverrideSizeFormat: integer = -1): string;
function FormatDate(Value: TTimeT; const FormatTime, FormatDate: boolean; OverrideTimeFormat: integer = -1; OverrideDateFormat: integer = -1; OverrideDateTimeFormat: integer = -1; OverrideCustomDateFormat: string = ''; OverrideCustomTimeFormat: string = ''): string;
@@ -175,16 +174,6 @@ begin
end;
(********************************************************************************************************************************)
-function UnixTimeToTDateTime(UnixTime: Int64): TDateTime;
-//var tm : PUnixTime;
-begin
- Result := UnixToDateTime(UnixTime);
-{ tm := localtime(@UnixTime);
- Result := EncodeDate(tm^.tm_year + 1900, tm^.tm_mon + 1, tm^.tm_mday) +
- EncodeTime(tm^.tm_hour, tm^.tm_min, tm^.tm_sec, 0); }
-end;
-
-(********************************************************************************************************************************)
function FormatFloat64(Value: Int64; Sep: string): string;
var i : integer;
Orig : string;