JX Application Framework
Loading...
Searching...
No Matches
Functions
jTime.h File Reference
#include "jTypes.h"
#include <time.h>
Include dependency graph for jTime.h:
This graph shows which files directly or indirectly include this file:

Functions

void JWait (const double delta)
 
JString JGetTimeStamp ()
 
JString JConvertToTimeStamp (const time_t t)
 
JString JPrintTimeInterval (const JUInt delta)
 
void JCheckExpirationDate (const time_t expireTime, const JUtf8Byte *map[], const JSize size)
 
long JGetTimezoneOffset ()
 

Function Documentation

◆ JCheckExpirationDate()

void JCheckExpirationDate ( const time_t  expireTime,
const JUtf8Byte map[],
const JSize  size 
)

Warns user if time is within two weeks of expiration. Calls exit() if time is beyond expiration.

map must define: date, name, version, url, email date must be first!

The application string data must define WarnExpire::jTime and Expired::jTime, because these messages should be customized.

◆ JConvertToTimeStamp()

JString JConvertToTimeStamp ( const time_t  t)

Returns the time stamp from ctime (minus the line feed) as a JString.

◆ JGetTimeStamp()

JString JGetTimeStamp ( )

Returns the time stamp from ctime (minus the line feed) as a JString.

◆ JGetTimezoneOffset()

long JGetTimezoneOffset ( )

Returns the offset to convert GMT to local time.

◆ JPrintTimeInterval()

JString JPrintTimeInterval ( const JUInt  delta)

Converts the given time interval in seconds into a string with a reasonable precision.

◆ JWait()

void JWait ( const double  delta)