HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Unix Time Stamp
Operating System - OpenVMS
1827283
Members
3447
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 09:37 AM
07-13-2005 09:37 AM
Unix Time Stamp
Hi all I've gotten the email notification to work but when I recieve the page I'm getting in a unix timestamp can anybody help me out with this I want to see regular system time?
Here is what i have in my bat file
@echo off
echo From: OpenView@enbridge.com >>c:\temp\test.txt
echo To: test@yahoo.com >>c:\temp\test.txt
echo Subject:D: %1 on %2 >>c:\temp\test.txt
echo.>>c:\temp\test.txt
echo.>>c:\temp\test.txt
echo %1 is unmanaged, on %2. >>c:\temp\test.txt
copy c:\temp\test.txt c:\inetpub\mailroot\pickup\
del c:\temp\test.txt
Automatic Action Command Line:
C:\\temp\\test1.bat $2 $5
Example:
r-springville-s0.enbusa-netequip.net is unmanaged, on 1121290945(I want to change this).
Here is what i have in my bat file
@echo off
echo From: OpenView@enbridge.com >>c:\temp\test.txt
echo To: test@yahoo.com >>c:\temp\test.txt
echo Subject:D: %1 on %2 >>c:\temp\test.txt
echo.>>c:\temp\test.txt
echo.>>c:\temp\test.txt
echo %1 is unmanaged, on %2. >>c:\temp\test.txt
copy c:\temp\test.txt c:\inetpub\mailroot\pickup\
del c:\temp\test.txt
Automatic Action Command Line:
C:\\temp\\test1.bat $2 $5
Example:
r-springville-s0.enbusa-netequip.net is unmanaged, on 1121290945(I want to change this).
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 10:32 AM
07-13-2005 10:32 AM
Re: Unix Time Stamp
George,
This query appears to be in the incorrect forum. This forum is for the OpenVMS operating system.
Looking at your batch stream, I suspect that this is a Windows question. I suggest that you re-post the question there.
- Bob Gezelter, http://www.rlgsc.com
This query appears to be in the incorrect forum. This forum is for the OpenVMS operating system.
Looking at your batch stream, I suspect that this is a Windows question. I suggest that you re-post the question there.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2005 10:34 AM
07-13-2005 10:34 AM
Re: Unix Time Stamp
George,
In the meantime, please note that the UNIX standard timestamp is the number of seconds that have elapsed since January 1, 1970.
- Bob Gezelter, http://www.rlgsc.com
In the meantime, please note that the UNIX standard timestamp is the number of seconds that have elapsed since January 1, 1970.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2005 10:08 AM
07-14-2005 10:08 AM
Re: Unix Time Stamp
If this is an OpenVMS question, here's some Q&D DCL to convert a Unix time stamp to OpenVMS system time format.
Cursory testing. The value 1121290945 translates to 13-JUL-2005 21:42:25, which seems plausible.
$ IF p1.EQS."" THEN INQUIRE p1 "Unix time"
$ t=F$INTEGER(p1)
$ s=t/60
$ d=":"+F$STRING(t-s*60)
$ t=s
$ s=t/60
$ d=":"+F$STRING(t-s*60)+d
$ t=s
$ s=t/24
$ d="-"+F$STRING(t-s*24)+d
$ b="1-JAN-1970"
$ loop: IF F$INTEGER(s).GT.9999
$ THEN
$ b=F$CVTIME("''b'+9999-0","ABSOLUTE","DATE")
$ s=s-9999
$ GOTO loop
$ ENDIF
$ b=F$CVTIME("''b'+''s'''d'","ABSOLUTE")
$ SHOW SYM b
$ EXIT
Cursory testing. The value 1121290945 translates to 13-JUL-2005 21:42:25, which seems plausible.
$ IF p1.EQS."" THEN INQUIRE p1 "Unix time"
$ t=F$INTEGER(p1)
$ s=t/60
$ d=":"+F$STRING(t-s*60)
$ t=s
$ s=t/60
$ d=":"+F$STRING(t-s*60)+d
$ t=s
$ s=t/24
$ d="-"+F$STRING(t-s*24)+d
$ b="1-JAN-1970"
$ loop: IF F$INTEGER(s).GT.9999
$ THEN
$ b=F$CVTIME("''b'+9999-0","ABSOLUTE","DATE")
$ s=s-9999
$ GOTO loop
$ ENDIF
$ b=F$CVTIME("''b'+''s'''d'","ABSOLUTE")
$ SHOW SYM b
$ EXIT
A crucible of informative mistakes
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP