X-Git-Url: http://www.lcore.org/git/lcore.git/blobdiff_plain/13da3d2110165e8501869e896f1f17706f2058c1..257fdc360d4c80e606358c108c890c5367436a12:/btime.pas?ds=sidebyside diff --git a/btime.pas b/btime.pas index 9bb9550..de279df 100644 --- a/btime.pas +++ b/btime.pas @@ -20,7 +20,7 @@ const var timezone:integer; - timezonestr:string; + timezonestr:ansistring; irctime,unixtime:integer; tickcount:integer; settimebias:integer; @@ -39,8 +39,8 @@ procedure gettimezone; procedure timehandler; procedure init; -function timestring(i:integer):string; -function timestrshort(i:integer):string; +function timestring(i:integer):ansistring; +function timestrshort(i:integer):ansistring; {$ifdef win32} function unixtimefloat_systemtime:float; @@ -546,10 +546,10 @@ begin timezonestr := timezonestr + char(l div 600 mod 10+48)+char(l div 60 mod 10+48)+':'+char(l div 10 mod 6+48)+char(l mod 10+48); end; -function timestrshort(i:integer):string; +function timestrshort(i:integer):ansistring; const - weekday:array[0..6] of string[4]=('Thu','Fri','Sat','Sun','Mon','Tue','Wed'); - month:array[0..11] of string[4]=('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); + weekday:array[0..6] of ansistring =('Thu','Fri','Sat','Sun','Mon','Tue','Wed'); + month:array[0..11] of ansistring =('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'); var y,m,d,h,min,sec,ms:word; t:tdatetime; @@ -562,10 +562,10 @@ begin inttostr(y); end; -function timestring(i:integer):string; +function timestring(i:integer):ansistring; const - weekday:array[0..6] of string[10]=('Thursday','Friday','Saturday','Sunday','Monday','Tuesday','Wednesday'); - month:array[0..11] of string[10]=('January','February','March','April','May','June','July','August','September','October','November','December'); + weekday:array[0..6] of ansistring =('Thursday','Friday','Saturday','Sunday','Monday','Tuesday','Wednesday'); + month:array[0..11] of ansistring =('January','February','March','April','May','June','July','August','September','October','November','December'); var y,m,d,h,min,sec,ms:word; t:tdatetime;