MCPcopy Create free account
hub / github.com/HaxeFoundation/hxcpp / __hxcpp_to_string

Function __hxcpp_to_string

src/hx/Date.cpp:397–402  ·  view source on GitHub ↗

* string form of a given Epoch time, without milliseconds and timezone offset, * as in format [YYYY-MM-DD hh:mm:ss] ex: [1997-07-16 19:20:30]. */

Source from the content-addressed store, hash-verified

395 * as in format [YYYY-MM-DD hh:mm:ss] ex: [1997-07-16 19:20:30].
396 */
397String __hxcpp_to_string(double inSeconds)
398{
399 struct tm time;
400 __internal_localtime( inSeconds, &time);
401 return __internal_to_string( time);
402}
403
404/*
405 * input: takes Y-M-D h:m:s.ms (considers that date parts are in UTC date_time representation)

Callers

nothing calls this directly

Calls 2

__internal_localtimeFunction · 0.85
__internal_to_stringFunction · 0.85

Tested by

no test coverage detected