0

I want to use toTimestamp function inside cpp.So I am accessing it like SPL::Functions::time::toTimestamp(Sys.YYYYMMDDhhmmss,date).Problem is that its unable to recognize 'Sys'. What library should I include?

shruti
  • 13
  • 4

1 Answers1

0

Because the toTimestamp family of functions were designed to be called by SPL code, they're not easy to use directly in C++. (The reason being that they rely on generated tuple and enum types.) From C++, it's easier to use the timeStringToTimestamp family of functions.

Scott S
  • 86
  • 3