MinitScript  0.9.31 PRE-BETA
Static Public Member Functions | List of all members
Time Class Reference

Time utility class. More...

#include <minitscript/utilities/Time.h>

Collaboration diagram for Time:
Collaboration graph

Static Public Member Functions

static int64_t getCurrentMillis ()
 Retrieve current time in milliseconds. More...
 
static string getAsString (const string &format="%Y-%m-%d %H:%M:%S")
 Get date/time as string. More...
 

Detailed Description

Time utility class.

Author
mahula

Definition at line 19 of file Time.h.

Member Function Documentation

◆ getCurrentMillis()

static int64_t getCurrentMillis ( )
inlinestatic

Retrieve current time in milliseconds.

Returns
int64_t

Definition at line 27 of file Time.h.

◆ getAsString()

static string getAsString ( const string &  format = "%Y-%m-%d %H:%M:%S")
inlinestatic

Get date/time as string.

Parameters
formatformat, see strftime
Returns
date/time as string

Definition at line 36 of file Time.h.


The documentation for this class was generated from the following file: