VB6 Date Data Type: Accuracy and Formatting

  • How accurate is the VB6 data type Date(in fractions of a second)?
  • How to format it to show fractions of a second?

I am revising VB6 after many years of absence, and during my life I do not remember what I knew. I thought about putting memory-leak because my memory was leaked (hur hur hur).

I found this API call later and it seems to work:

Declare Sub GetSystemTime Lib "kernel32.dll" (lpSystemTime As SystemTime)

Public Type SystemTime
  Year As Integer
  Month As Integer
  DayOfWeek As Integer
  Day As Integer
  Hour As Integer
  Minute As Integer
  Second As Integer
  Milliseconds As Integer
End Type
+3
source share
3 answers

1) Only seconds and

2) There is no way.

+3
source

Date Double (min/max Date values) . , , , VBA .

( IMO ), Double . , = 1 ( ), . , Double (, , Date) .

, , , VBA (Now, DateSerial, DateDiff, DateAdd ..) . , Double , . .., VBA6.

, , ( , - StdDataFormat, / SQL Server MS Data Grid VBA), , (ouch!)

+7

, Datatype Date VB6 .

+1

Source: https://habr.com/ru/post/1698082/


All Articles