refactor `import datetime`