Source/Source/CubeSatCamera.cpp
//gets today's date in YYYY-MM-DD format
gets today's date in YYYY-MM-DD format
gets today ' s date in YYYY - MM - DD format
string CubeSatCamera::getDate() {
  time_t now = time(nullptr);
  tm *ltm = localtime(&now);
  string year = to_string(1900 + ltm -> tm_year);
  string month = to_string(1 + ltm -> tm_mon);
  string day = to_string(ltm -> tm_mday);
  return year + "-" + month + "-" + day;
}
string CubeSatCamera :: getDate ( ) { time_t now = time ( nullptr ) ; tm * ltm = localtime ( & now ) ; string year = to_string ( 1900 + ltm -> tm_year ) ; string month = to_string ( 1 + ltm -> tm_mon ) ; string day = to_string ( ltm -> tm_mday ) ; return year + " " + month + " " + day ; }
gets today's date in YYYY-MM-DD format
gets today ' s date in YYYY - MM - DD format