Comments (5)
from wil.
SystemTimeToFileTime and the reverse for conversion actually causes problems, this is exactly why .net has AddYears().
from wil.
@ShawnSteele - are there Windows platform APIs to manipulating times like the .NET versions?
This - standard APIs for manipulating times - might be a good fit for http://github.com/microsoft/projectreunion
from wil.
And 2 years later we have C++20's std::chrono
dates which correctly handles leap years and leap seconds. I'm not sure date manipulation APIs are a good fit for Project Reunion, this topic should be best left to the language implementation/standard library.
from wil.
I'm going to close this for now since we support std::chrono
everywhere it needs to be.
WinAppSDK might still be a reasonable place to put language-agnostic date manipulation methods based on the WinRT DateTime
& TimeSpan
structs, but most language runtimes have a preferred version they already provide.
from wil.
Related Issues (20)
- warning C6001 HOT 1
- simple_event seems to be unusable - Compilation error with wil::simple_event, const vs non-cost handler. HOT 2
- Synchronous generator support for IIterable<T> HOT 1
- Some questions about wil::reg HOT 3
- `single_threaded_property` should not be externally writeable HOT 4
- `untyped_event` and `typed_event` do not work for events that don't derive from `EventHandler` or `TypedEventHandler` (eg `Windows.UI.Xaml.Data.CurrentChangingEventHandler`) HOT 2
- [C++/WinRT] Helpers to make it easier to copy data from one collection type (std::initializer_list, etc.) to another (IVector, ValueSet, etc.) HOT 4
- Allow getting array_view/span out of IBuffer and IMemoryBuffer HOT 6
- wil should add GUID-related APIs HOT 4
- wil::zwstring_view should have a constructor that takes a winrt::hstring
- unique_hlocal_string should be available under UWP
- Add compile-time parameter checking for _MSG macros HOT 22
- WIL diagnostic level 2 not working HOT 1
- WIL github new issue should have category chooser
- wil should have a AdaptFixedSizeToAllocatedResult for non-string types
- THROW_WIN32_IF_MSG / THROW_WIN32_IF_MSG doesn't exist. HOT 1
- wil::GetFinalPathNameByHandleW suggestion HOT 2
- GetCurrentProcessExecutionOption should allow a process name to be passed in HOT 1
- unique_mutex : can't find how you pair closehandle on mutex in WIL HOT 4
- Add a string literal marker for wil::zwstring_view
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wil.