Skip to content

Commit eac4294

Browse files
committed
minor change to utils module
1 parent d8e2d84 commit eac4294

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

source/ddbc/drivers/utils.d

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
*/
1919
module ddbc.drivers.utils;
2020

21-
import std.datetime;
21+
private import std.datetime : Date, TimeOfDay;
22+
private import std.format : formattedRead;
2223

2324
string copyCString(T)(const T* c, int actualLength = -1) if (is(T == char) || is (T == ubyte)) {
2425
const(T)* a = c;
@@ -40,7 +41,6 @@ string copyCString(T)(const T* c, int actualLength = -1) if (is(T == char) || is
4041

4142
TimeOfDay parseTimeoid(const string timeoid)
4243
{
43-
import std.format;
4444
string input = timeoid.dup;
4545
int hour, min, sec;
4646
formattedRead(input, "%s:%s:%s", &hour, &min, &sec);
@@ -49,7 +49,6 @@ TimeOfDay parseTimeoid(const string timeoid)
4949

5050
Date parseDateoid(const string dateoid)
5151
{
52-
import std.format: formattedRead;
5352
string input = dateoid.dup;
5453
int year, month, day;
5554
formattedRead(input, "%s-%s-%s", &year, &month, &day);

0 commit comments

Comments
 (0)