Unit Noso.Time
Description
This item has no description.
Uses
- Classes
- DateUtils
- IdSNTP
- strutils
- SysUtils
Overview
Classes, Interfaces, Objects and Records
Functions and Procedures
Variables
Description
Functions and Procedures
function BlockAge(): Integer; |
|
Return the current block age
|
function GetNetworkTimestamp(hostname: String): Int64; |
|
Returns the data from the specified NTP server [Hostname]
|
function GetTimeOffset(NTPServers: String): Int64; |
|
Uses a random NTP server from the list provided to set the value of the local variables. NTPservers string must use NosoCFG format: server1:server2:server3:....serverX: If directly invoked, will block the main thread until finish. (not recommended except on app launchs)
|
function IsBlockOpen(): Boolean; |
|
Returns if the current block is in operation period
|
function NextBlockTimeStamp(): Int64; |
|
Returns the expected timestamp for next block
|
function TimeSinceStamp(Lvalue: Int64): String; |
|
Tool: returns a simple string with the time elapsed since the provided timestamp [LValue]
|
function TimestampToDate(timestamp: Int64): String; |
|
Returns a UNIX timestamp in a human readeable format
|
procedure UpdateOffset(NTPServers: String); |
|
Implemented to allow an async update of the offset; can be called every 5 seconds max
|
function UTCTime: Int64; |
|
Returns the UTC UNIX timestamp
|
function UTCTimeStr: String; |
|
Implemented for easy compatibility with nosowallet
|
Variables
NosoT_LastServer: String = ''; |
|
This item has no description. |
NosoT_LastUpdate: Int64 = 0; |
|
This item has no description. |
NosoT_TimeOffset: Int64 = 0; |
|
This item has no description. |
Generated by PasDoc 0.16.0-snapshot.