IMAGE DATE / TIME STAMP INFORMATION . . .
2020-12-14-171442
All --
I am working on an application where the DATE / TIME STAMP on an IMAGE is compared with DATA that is logged by another device.
When I get the TIME STAMP from the IMAGE using
Debug.Print ThisApplication.ActiveImage.date
The Debug.print shows
"2020-05-28 5:13:19"
The IMAGE INFO shows
"Date / Time: 2020-05-28 00:13:19.093"
Another set of examples from the same set of images is:
"2020-05-27 12:50:28"
from the CODE and
"Date / Time: 2020-05-27 07:50:28.187"
from the IMAGE INFO.
The difference between the CODE and the IMAGE INFO seems to be the number of hours in shift between USA CENTRAL TIME ZONE and UTC Coordinated Universal Time (what we used to call Greenwich Mean Time) which is 5 or 6 hours depending upon DAYLIGHT SAVINGS TIME.
I believe that the information from
ThisApplication.ActiveImage.date
matches the information in the LOG FILE but I would like to know if there are options to extract the DATE / TIME STAMP from the image?
Thanks in advance.
-- Matt
0
Answers
-
Hi Matt,
ThisApplication.ActiveImage.Date is the image time stamp. You can convert this tome to local or UTC using .NET functions (and print it in different formats formats):Public Sub PrintDateTime Dim t As Date=ThisApplication.ActiveImage.Date Debug.Print "Image Date/Time Local Time : " & t.ToLocalTime Debug.Print "Image Date/Time UTC Time : " & t.ToUniversalTime End Sub
the result looks like this:Image Date/Time Local Time : 6/29/2011 10:51:17 AMImage Date/Time UTC Time : 6/29/2011 6:51:17 AMYuri0 -
2020-12-15-092547Yuri --Super.Perfect.Thanks.-- Matt
0
Categories
- All Categories
- 961 Image-Pro v9 and higher
- 9 Image-Pro FAQs
- 18 Image-Pro Download & Install
- 448 Image-Pro General Discussions
- 486 Image-Pro Automation (Macros, Apps, Reports)
- 20 AutoQuant Deconvolution
- 2 AutoQuant Download & Install
- 18 AutoQuant General Discussions
- 195 Image-Pro Plus v7 and lower
- 3 Image-Pro Plus Download & Install
- 106 Image-Pro Plus General Discussions
- 86 Image-Pro Plus Automation with Macros
- 19 Legacy Products
- 16 Image-Pro Premier 3D General Discussions
- 26 Image-Pro Insight General Discussions