mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 13:44:26 +02:00
Missing new line that messed with markdown style
@@ -335,6 +335,8 @@ to_time_point(components, tp);
|
|||||||
```
|
```
|
||||||
|
|
||||||
<a name="components_to_time_point">
|
<a name="components_to_time_point">
|
||||||
|
|
||||||
|
|
||||||
### Obtaining `y/m/d h:m:s` components from a `time_point`
|
### Obtaining `y/m/d h:m:s` components from a `time_point`
|
||||||
(by [ecorm](https://github.com/ecorm))
|
(by [ecorm](https://github.com/ecorm))
|
||||||
|
|
||||||
@@ -1688,7 +1690,8 @@ std::string exec_and_get_output(const char* cmd)
|
|||||||
return output;
|
return output;
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string get_xdg_download_folder(const std::string& suffix = "tzdata_alt") {
|
std::string get_xdg_download_folder(const std::string& suffix = "tzdata_alt")
|
||||||
|
{
|
||||||
std::string download_folder = "~/Downloads"; // common download folder by default
|
std::string download_folder = "~/Downloads"; // common download folder by default
|
||||||
std::string xdg_command = "xdg-user-dir DOWNLOAD";
|
std::string xdg_command = "xdg-user-dir DOWNLOAD";
|
||||||
std::string xdg_download_folder = exec_and_get_output(xdg_command.c_str());
|
std::string xdg_download_folder = exec_and_get_output(xdg_command.c_str());
|
||||||
|
Reference in New Issue
Block a user