Building

The DateTime Libraries (both x86 and x64 versions) come with RadASMs project to help you build the sources. However if you wish to build the libraries manually, here are the command line options you should use.

Building the DateTime Library x86

The DateTime Library x86 source consists of the following files:

  • DateTime.inc

  • DTDateFormat.asm

  • DTDatesStringCompare.asm

  • DTDateStringsDifference.asm

  • DTDateTimeStringsDifference.asm

  • DTDateTimeStringToDwordDateTime.asm

  • DTDateTimeStringToJulianMillisec.asm

  • DTDateTimeStringToUnixTime.asm

  • DTDay.asm

  • DTDayOfWeek.asm

  • DTDwordDateTimeToDateTimeString.asm

  • DTDwordDateTimeToJulianMillisec.asm

  • DTDwordDateTimeToUnixTime.asm

  • DTDwordDateToJulianDate.asm

  • DTDwordTimeToMillisec.asm

  • DTGetDateTime.asm

  • DTIsLeapYear.asm

  • DTJulianDateToDwordDate.asm

  • DTJulianMillisecToDateTimeString.asm

  • DTJulianMillisecToDwordDateTime.asm

  • DTMillisecToDwordTime.asm

  • DTMonth.asm

  • DTUnixTimeToDateTimeString.asm

  • DTUnixTimeToDwordDateTime.asm

  • DTYear.asm

Building with Microsoft MASM (ML.EXE):

ML.EXE /c /coff /Cp /nologo /I"X:\MASM32\Include" *.asm

Note

X is the drive letter where the MASM32 package has been installed to.

Linking with Microsoft Library Manager (LIB.EXE):

LIB *.obj /out:DateTime.lib

Building the DateTime Library x86 Debug Build

To build the DateTime Library x86 with debug information, supply the additional flag options /Zi /Zd on the command line for MASM (ML.EXE) like so:

ML.EXE /c /coff /Cp /Zi /Zd /nologo /I"X:\MASM32\Include" *.asm

Note

X is the drive letter where the MASM32 package has been installed to.

Building the DateTime Library x64

The DateTime Library x64 source consists of the following files:

  • DateTime.inc

  • DTDateFormat.asm

  • DTDatesStringCompare.asm

  • DTDateStringsDifference.asm

  • DTDateTimeStringsDifference.asm

  • DTDateTimeStringToQwordDateTime.asm

  • DTDateTimeStringToJulianMillisec.asm

  • DTDateTimeStringToUnixTime.asm

  • DTDay.asm

  • DTDayOfWeek.asm

  • DTGetDateTime.asm

  • DTIsLeapYear.asm

  • DTJulianDateToQwordDate.asm

  • DTJulianMillisecToDateTimeString.asm

  • DTJulianMillisecToQwordDateTime.asm

  • DTMillisecToQwordTime.asm

  • DTMonth.asm

  • DTQwordDateTimeToDateTimeString.asm

  • DTQwordDateTimeToJulianMillisec.asm

  • DTQwordDateTimeToUnixTime.asm

  • DTQwordDateToJulianDate.asm

  • DTQwordTimeToMillisec.asm

  • DTUnixTimeToDateTimeString.asm

  • DTUnixTimeToQwordDateTime.asm

  • DTYear.asm

Building with UASM (UASM64.EXE):

UASM64.EXE /c -win64 -Zp8 /win64 /D_WIN64 /Cp /nologo /W2 /I"X:\UASM\Include" *.asm

Note

X is the drive letter where the UASM assembler has been installed to.

Linking with Microsoft Library Manager (LIB.EXE):

LIB *.obj /out:DateTime.lib

Building the DateTime Library x64 Debug Build

To build the DateTime Library x64 with debug information, supply the additional flag options /Zi /Zd on the command line for UASM (UASM64.EXE) like so:

UASM64.EXE /c -win64 -Zp8 /Zi /Zd /win64 /D_WIN64 /Cp /nologo /W2 /I"X:\UASM\Include" *.asm

Note

X is the drive letter where the MASM32 package has been installed to… note:: X is the drive letter where the UASM assembler has been installed to.