foobar2000 SDK  2015-01-14
Public Member Functions | Private Attributes
foobar2000_io::format_filetimestamp_utc

#include <filetimetools.h>

Public Member Functions

 format_filetimestamp_utc (t_filetimestamp p_timestamp)
 
const char * get_ptr () const
 
 operator const char * () const
 

Private Attributes

pfc::string_fixed_t< 32 > m_buffer
 

Detailed Description

Definition at line 14 of file filetimetools.h.

Constructor & Destructor Documentation

format_filetimestamp_utc::format_filetimestamp_utc ( t_filetimestamp  p_timestamp)

Definition at line 90 of file filetimetools.cpp.

90  {
91  try {
92  SYSTEMTIME st;
93  if (FileTimeToSystemTime((const FILETIME*)&p_timestamp,&st)) {
94  m_buffer
95  << pfc::format_uint(st.wYear,4) << "-" << pfc::format_uint(st.wMonth,2) << "-" << pfc::format_uint(st.wDay,2) << " "
96  << pfc::format_uint(st.wHour,2) << ":" << pfc::format_uint(st.wMinute,2) << ":" << pfc::format_uint(st.wSecond,2);
97  return;
98  }
99  } catch(...) {}
101 }
pfc::string_fixed_t< 32 > m_buffer
Definition: filetimetools.h:20
static const char g_invalidMsg[]

Member Function Documentation

const char* foobar2000_io::format_filetimestamp_utc::get_ptr ( ) const
inline

Definition at line 18 of file filetimetools.h.

18 {return m_buffer;}
pfc::string_fixed_t< 32 > m_buffer
Definition: filetimetools.h:20
foobar2000_io::format_filetimestamp_utc::operator const char * ( ) const
inline

Definition at line 17 of file filetimetools.h.

17 {return m_buffer;}
pfc::string_fixed_t< 32 > m_buffer
Definition: filetimetools.h:20

Field Documentation

pfc::string_fixed_t<32> foobar2000_io::format_filetimestamp_utc::m_buffer
private

Definition at line 20 of file filetimetools.h.


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