Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/Show-the-epoch/LotusScript/show-the-epoch.lotus
Normal file
17
Task/Show-the-epoch/LotusScript/show-the-epoch.lotus
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
Sub Click(Source As Button)
|
||||
'Create timestamp as of now
|
||||
Dim timeStamp As NotesDateTime
|
||||
Set timeStamp = New NotesDateTime ( Now )
|
||||
|
||||
'Assign epoch start time to variable
|
||||
Dim epochTime As NotesDateTime
|
||||
Set epochTime = New NotesDateTime ( "01/01/1970 00:00:00 AM GMT" ) ''' These two commands only to get epoch time.
|
||||
|
||||
'Calculate time difference between both dates
|
||||
Dim epochSeconds As Long
|
||||
epochSeconds = timeStamp.TimeDifference ( epochTime )
|
||||
|
||||
'Print result
|
||||
Print epochSeconds
|
||||
|
||||
End Sub
|
||||
Loading…
Add table
Add a link
Reference in a new issue