.. _DTDay:
===================================
DTDay
===================================
Get the day part of a date & time string.
::
DTDay PROTO lpszDateTimeString:DWORD, DateFormat:DWORD
**Parameters**
* ``lpszDateTimeString`` - Pointer to a buffer containing the date & time string to retrieve the **day** portion from. The format of the date & time string is determined by the ``DateFormat`` parameter.
* ``DateFormat`` - Value indicating the date & time format used in the buffer pointed to by ``lpszDateTimeString`` parameter. The parameter can contain one of the following constants as listed in the :ref:`DateTime Formats<DateTime Formats>` page and as defined in the ``DateTime.inc`` include file.
**Returns**
Returns the day value in ``EAX``
**Example**
::
.data
DateTimeStringValue db "2008/03/21 16:21:01:00",0
.data?
DayValue dd ?
.code
Invoke DTDay, Addr DateTimeStringValue, CCYYMMDDHHMMSSMS
mov DayValue, eax ; save day part of date value to data variable
; eax should contain 21
**See Also**
:ref:`DTMonth<DTMonth>`, :ref:`DTYear<DTYear>`, :ref:`DTIsLeapYear<DTIsLeapYear>`, :ref:`DTDayOfWeek<DTDayOfWeek>`, :ref:`DateTime Formats<DateTime Formats>`@echo off
rem delete temp files
for /f "Tokens=*" %%a in ('dir *. /b/a-d') do (
del %%a
)
echo.>DTGetDateTime
echo.>DTDateFormat
echo.>DTDateTimeStringToDwordDateTime
echo.>DTDwordDateTimeToDateTimeString
echo.>DTDwordDateToJulianDate
echo.>DTJulianDateToDwordDate
echo.>DTDateTimeStringToJulianMillisec
echo.>DTJulianMillisecToDateTimeString
echo.>DTDwordDateTimeToJulianMillisec
echo.>DTJulianMillisecToDwordDateTime
echo.>DTDateTimeStringToUnixTime
echo.>DTUnixTimeToDateTimeString
echo.>DTDwordDateTimeToUnixTime
echo.>DTUnixTimeToDwordDateTime
echo.>DTDwordTimeToMillisec
echo.>DTMillisecToDwordTime
echo.>DTDayOfWeek
echo.>DTIsLeapYear
echo.>DTDay
echo.>DTMonth
echo.>DTYear
echo.>DTDateStringsCompare
echo.>DTDateStringsDifference
echo.>DTDateTimeStringsDifference
rem bare files to rst
for /f "Tokens=*" %%a in ('dir *. /b/a-d') do (
echo... _%%a:>%%a.rst
echo.>>%%a.rst
echo ===================================>>%%a.rst
echo %%a >>%%a.rst
echo ===================================>>%%a.rst
echo.>>%%a.rst
echo... delete this starting at \.\. and type description>>%%a.rst
echo.>>%%a.rst
echo ::>>%%a.rst
echo.>>%%a.rst
echo %%a^(^)>>%%a.rst
echo.>>%%a.rst
echo.>>%%a.rst
echo **Parameters**>>%%a.rst
echo.>>%%a.rst
echo * **>>%%a.rst
echo * **>>%%a.rst
echo * **>>%%a.rst
echo.>>%%a.rst
echo.>>%%a.rst
echo **Returns**>>%%a.rst
echo.>>%%a.rst
echo.>>%%a.rst
echo.>>%%a.rst
echo **Notes**>>%%a.rst
echo.>>%%a.rst
echo.>>%%a.rst
echo.>>%%a.rst
echo **Example**>>%%a.rst
echo.>>%%a.rst
echo ::>>%%a.rst
echo.>>%%a.rst
echo %%a^(^)>>%%a.rst
echo.>>%%a.rst
echo **See Also**>>%%a.rst
echo.>>%%a.rst
echo :ref:``, :ref:`` >>%%a.rst
echo.>>%%a.rst
)
rem delete temp files
for /f "Tokens=*" %%a in ('dir *. /b/a-d') do (
del %%a > nul
)
del "%a.rst" > nulOnce i have created them, i rename the batch file to prevent accidentally clicking it again and overwriting any work done ;-)1. Finish the UEFI support
2. Improve the ObjMem documentation
especially the documentation issue seems to be a special one
| ObjMem functions collection and library. Part A. Function briefs and nomenclature. - ObjAsm Reference - Volume II Document version 1.0 |
This document describes all the methods and other content of the ObjAsm project's main open source static library called ObjMem.lib.
this document is more of a proof of concept,