mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 13:44:26 +02:00
Content was not in bold.
@@ -1,6 +1,6 @@
|
|||||||
This page contains examples and recipes contributed by community members. Feel free to add your own contributions by clicking on the "Edit" button. Please "sign" your contributions by adding a link to your GitHub profile. **But please understand that your contributions will henceforth be considered donated under the [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)**. If this requirement is a problem for anyone, bring it to Howard's attention and we will try to work out a compromise.
|
This page contains examples and recipes contributed by community members. Feel free to add your own contributions by clicking on the "Edit" button. Please "sign" your contributions by adding a link to your GitHub profile. **But please understand that your contributions will henceforth be considered donated under the [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)**. If this requirement is a problem for anyone, bring it to Howard's attention and we will try to work out a compromise.
|
||||||
|
|
||||||
##Contents
|
## Contents
|
||||||
- [The current local time](#localtime)
|
- [The current local time](#localtime)
|
||||||
- [The current time somewhere else](#elsetime)
|
- [The current time somewhere else](#elsetime)
|
||||||
- [Get the current difference between any two arbitrary time zones](#deltatz)
|
- [Get the current difference between any two arbitrary time zones](#deltatz)
|
||||||
@@ -29,7 +29,7 @@ This page contains examples and recipes contributed by community members. Feel f
|
|||||||
- [Print out a compact calendar for the year](#calendar)
|
- [Print out a compact calendar for the year](#calendar)
|
||||||
- [Parsing unambiguous date time inside daylight transition](#parse_daylight_transition)
|
- [Parsing unambiguous date time inside daylight transition](#parse_daylight_transition)
|
||||||
- [`microfortnights`?! Are you serious?](#microfortnights)
|
- [`microfortnights`?! Are you serious?](#microfortnights)
|
||||||
- [Find UNIX download folder thanks to xdg-user-dir](#set_install_with_xdg_user_dir)
|
- [Find and set UNIX download folder thanks to xdg-user-dir](#set_install_with_xdg_user_dir)
|
||||||
|
|
||||||
***
|
***
|
||||||
|
|
||||||
@@ -1659,7 +1659,7 @@ If this library can do this so easily with something as crazy as `microfortnight
|
|||||||
|
|
||||||
|
|
||||||
<a name="set_install_with_xdg_user_dir"></a>
|
<a name="set_install_with_xdg_user_dir"></a>
|
||||||
### Find UNIX download folder thanks to xdg-user-dir
|
### Find and set UNIX download folder thanks to xdg-user-dir
|
||||||
(by [Coin²](https://github.com/coin-au-carre))
|
(by [Coin²](https://github.com/coin-au-carre))
|
||||||
|
|
||||||
The library uses the path `~/Downloads` by default. What if you use a different path for your download directory such as `~/Téléchargements` or `~/Завантаження` and you want your program to automatically find this path ? A solution is to use [xdg_user_dir](https://freedesktop.org/wiki/Software/xdg-user-dirs/). The following code shows you how you can do it :
|
The library uses the path `~/Downloads` by default. What if you use a different path for your download directory such as `~/Téléchargements` or `~/Завантаження` and you want your program to automatically find this path ? A solution is to use [xdg_user_dir](https://freedesktop.org/wiki/Software/xdg-user-dirs/). The following code shows you how you can do it :
|
||||||
|
Reference in New Issue
Block a user