MCPcopy Create free account
hub / github.com/WinMerge/winmerge / ColTimeGet

Function ColTimeGet

Src/DirViewColItems.cpp:457–464  ·  view source on GitHub ↗

* @brief Format Date column data. * @param [in] p Pointer to integer (seconds since 1.1.1970). * @return String to show in the column. */

Source from the content-addressed store, hash-verified

455 * @return String to show in the column.
456 */
457static String ColTimeGet(const CDiffContext *, const void *p, int)
458{
459 const int64_t r = *static_cast<const int64_t*>(p) / Timestamp::resolution();
460 if (r)
461 return locality::TimeString(&r);
462 else
463 return _T("");
464}
465
466/**
467 * @brief Format Sizw column data.

Callers

nothing calls this directly

Calls 1

TimeStringFunction · 0.85

Tested by

no test coverage detected