question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DateTime.now() in documentation but actually does not exist

See original GitHub issue

Describe the bug In the documentation there is a method described that is called now() but when using it I get the error luxon__WEBPACK_IMPORTED_MODULE_1__.DateTime.now

Actually the typescript typings also do not have this method

To Reproduce use DateTime.now()

Actual vs Expected behavior Either the documentation should not contain the method or it should actually exist.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
DaSchTourcommented, Feb 28, 2021

@ethanmick Update. It’s like luxon released a 2.0 DateTime.now() is very new function

0reactions
icambroncommented, Jan 20, 2022

I’d take a PR adding version indicators to the docs

Read more comments on GitHub >

github_iconTop Results From Across the Web

The type name 'Now' does not exist in the type 'DateTime'
I am making a quiz app cross-platform using Xamarin and C# in Visual Studio 2017. The problem occurs with this line of code:...
Read more >
datetime — Basic date and time types — Python 3.11.1 ...
The datetime module supplies classes for manipulating dates and times. While date and time arithmetic is supported, the focus of the implementation is...
Read more >
MySQL 5.7 Reference Manual :: 12.7 Date and Time Functions
Functions that expect time values usually accept datetime values and ignore the date part. Functions that return the current date or time each...
Read more >
DateTime - A date and time object for Perl - metacpan.org
DESCRIPTION. DateTime is a class for the representation of date/time combinations, and is part of the Perl DateTime project. It represents the Gregorian ......
Read more >
Impala Date and Time Functions | 6.3.x
Purpose: Adds a specified number of days to a TIMESTAMP value. Similar to DATE_ADD() , but starts with an actual TIMESTAMP value instead...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found