Changeset 15 for trunk/Packages
- Timestamp:
- Nov 15, 2012, 12:34:33 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/CoolWeb/Persistence/USqlDatabase.pas
r4 r15 90 90 function MySQLStrToFloat(S: string): Real; 91 91 function SQLToDateTime(Value: string): TDateTime; 92 function SQLToTime(Value: string): TDateTime; 92 93 function DateTimeToSQL(Value: TDateTime): string; 93 94 … … 175 176 end; 176 177 178 function SQLToTime(Value: string): TDateTime; 179 var 180 TimeParts: TListString; 181 begin 182 try 183 TimeParts := TListString.Create; 184 TimeParts.Explode(Value, ':', StrToStr); 185 Result := Result + EncodeTime(StrToInt(TimeParts[0]), StrToInt(TimeParts[1]), 186 StrToInt(TimeParts[2]), 0); 187 finally 188 TimeParts.Free; 189 end; 190 end; 191 177 192 { TSqlDatabase } 178 193
Note:
See TracChangeset
for help on using the changeset viewer.