Questions about Mathematica's date and time functions.

learn more… | top users | synonyms (3)

5
votes
1answer
192 views

Throttle EventHandler KeyReleased

What might be the most elegant way to throttle the a,s functions triggered by an ...
2
votes
1answer
89 views

Automatic text-wrapping in labels in `TimelinePlot`

Part-related to this question and part-related to this one, I would like to make use of the new features of TimelinePlot in 10.3, but would like to incorporate some ...
3
votes
0answers
42 views

Possible Bug with DateObject

So my questions is going to be hard to duplicate because I am not sure when or why it happens. I've read here several bugs with DateObject, but none of them ...
3
votes
1answer
36 views

How to modify wrong time zone in a Date object?

How can one modify the wrong time zone in a DateObject, without a conversion? Can one manipulate the TimeZone directly without having the numerical value of the time changing?
2
votes
1answer
92 views

working hours and negative time [closed]

I have a list of TimeObjects. I want to subtract 5h from each element and if TimeObject < 5h then give a negative hour. My ...
5
votes
2answers
81 views

How can DateObject handle calender weeks

I have dates given for a TimeLinePlot. These dates are in {year,week} format. DateObject ...
6
votes
2answers
120 views

Plot time along the y-axis?

How can I plot times along the Y-axis, (with dates along the X-axis) e.g. ...
2
votes
2answers
41 views

Date Conversion Using Regular Expressions on “Incomplete” Date Formats

I have a list of dates in one of the following formats: "1999/05/12", "1999/05/", "1999//", "****//**/", "" so that a list of such dates might appear as ...
1
vote
1answer
85 views

Why do I get different results for the same input specified using natural language phrasing? [closed]

One of the comments to Stephen Wolfram's blog post on Ada Lovelace, mentioned that WolframAlpha (and verified in Mathematica as well) provided slightly different results for the question of Ada's age ...
10
votes
1answer
232 views

Behavior of TimelinePlot with multiple datasets of associations

Bug introduced in 10.1 and fixed in 10.3 The following TimelinePlot behaves as I would expect: ...
4
votes
2answers
120 views

Finding the positions DateList dates in a range in large data set

There are similar questions to this like list search but this question is focused on finding at subset of dates in DateList format within a range of specified dates ...
7
votes
2answers
338 views

How much time should one give Mathematica for an integral evaluation?

Sometimes when I do integrals in Mathematica (M), it keeps thinking and thinking and I have no idea what is going on inside M. For how long should one wait or how does one know whether M has not got ...
1
vote
0answers
32 views

Save a Mathematica notebook evaluated [duplicate]

My notebooks can take some time to evaluate and by quitting Mathematica, I have to reevaluate every definition I've made once I restart Mathematica. Is there a way to tell Mathematica to save the ...
10
votes
1answer
177 views

DateDifference isn't consistent when giving result in years

This isn't really causing me a problem at the moment, but it's weird. Is this documented anywhere? When I ask for the difference in days and then in years between April 1, 2015 and October 1, 2015 ...
6
votes
3answers
140 views

EasterSunday replacement in Mathematica 10

The Calendar package, now obsolete, had functionality for "special dates", in particular EasterSunday[]. The documentation says it's been subsumed into Wolfram ...
5
votes
2answers
114 views

How to convert date string with fractional seconds to DateObject

I have a date/time string from a data file in the form "2014/01/09 07:24:36:001". I would like to convert it to a DateObject. I ...
26
votes
4answers
1k views

Does Mathematica have a built-in date picker?

Does Mathematica have an interactive date input control that lets the user choose a date by browsing to a calendar view and returning the selected date as a date list? For example, something like the ...
6
votes
1answer
133 views

DateList does not output the correct time, but Date does

Bug fixed in 10.0.0+2014080602 I noticed a strange thing when trying the new astronomical data functions in Mathematica 10 on my Raspberry Pi. The Sunrise and ...
4
votes
1answer
60 views

Working with dates & times - nonatomic expression expected [closed]

Please note that I am new to Mathematica. I am endeavouring to import data from a CSV file with the first column a date and time. The import appears to work fine and returns the results I expect: ...
5
votes
3answers
79 views

How to ignore year in DateListPlot

I just upgraded to Mathematica 10, and I am trying to get the hang of the new TimeSeries data objects, which are preventing my old strategy of overlaying data from ...
6
votes
6answers
725 views

Sort list by day names (Monday, Tuesday, etc)

I have some dates in a list, and I want to plot how many of those dates are Monday, Tuesday, etc. I'm using this: data = {...} Tally[DayOfWeek /@ data] and I ...
4
votes
0answers
33 views

DateObject's DateFormat option has inconsistent result in TimelinePlot LabelingFunction and by direct call

I want to strip time and time zone from dates in the LabelingFunction of a TimelinePlot. I am using the ...
7
votes
1answer
609 views

Why does Mathematica's date for the battle Agincourt differ from the US Navy's?

If I ask Mathematica for the Julian Date for the battle of Agincourt with WolframAlpha["battle of agincourt date"] it reports ...
14
votes
3answers
2k views

How do I compute sidereal time and JD?

There was once a package that provided a wide range of functions for computing astronomical information. This package now appears to be out of date; but as near as I can tell, many of the useful ...
2
votes
1answer
91 views

DateListPlot show iso week

How can I make DateListPlot show the iso week number? I would like to make a Date plot so that for each dot it will show the iso week date in the x-axis .
6
votes
3answers
218 views

Problem About TimelinePlot

Bug introduced in 10.1 and fixed in 10.3 TimeLinePlot was introduced in 10.1 I have some data from wikipedia. ...
13
votes
4answers
361 views
1
vote
1answer
38 views

Aborting an evaluation automatically after a specified time elapsed

I use the following code to evaluate a series of notebooks: nb1 = NotebookOpen["C:\\Users\\....nb"]; SelectionMove[nb1, All, Notebook] SelectionEvaluate[nb1] ...
3
votes
2answers
79 views

Troubles importing date and time from CSV file

I'm trying to import CSV file with the following format: 20150803 00:00:01.649,1.09675,1.09678 using this code: ...
23
votes
3answers
4k views

how to make graphic timelines in mathematica

Hi does anyone know how to make timelines with mathematica? Something like that would be great!
2
votes
1answer
92 views

DateListPlot incorrect time zone [closed]

I'm trying to plot energy usage over time using datelistplot but the time zone on the ticks is wrong, data for 7pm shows as 3am The code: ...
14
votes
5answers
466 views

Does Mathematica support importing ISO 8601 date strings?

Does Mathematica have a built-in function to convert ISO 8601 formatted date strings (e.g. 2012-01-04T00:00:00) to a date list? ISO 8601 strings come in a variety ...
5
votes
2answers
242 views

Time Zone Conversion

I use Mathematica to administer my share depots. The depots contain shares of many different time zones. I update the depot values several times a day. My problem is that Sidney, Australia, (it might ...
17
votes
10answers
2k views

Determining the week of a year from a given date

Consider the following: AbsoluteTime["17/04/2012",{"Day","/","Month","Year"}]; From my calendar in my office, I know that April 17th is in the 16th week of the ...
3
votes
2answers
138 views

Convert DateObject into TimeObject

How to elegantly convert from DateObject to TimeObject? The purpose is to extract time from the DateObject and manipulate only ...
7
votes
1answer
154 views

Determining FinancialData for Countries

How do I determine the FinancialData for Australia. For instance the one for USA follows as: FinancialData["NYSE", "Members"] ...
3
votes
3answers
205 views

Delete rows based on specific periods

I have data (.xlsx format): two columns - data in first column imported as DateObject (dates with specific time), data in second column are numbers (113388.28, 865165.98 etc.). I want to delete the ...
5
votes
1answer
106 views

DatePlus changes in V10.2, can I return to previous behaviour?

Now in V10.2, DatePlus has changed it behaviour in a undocumented way. Now, DatePlus[n] (with n as ...
4
votes
2answers
355 views

Should we invest in Apple?

Ticker[comp_String] := Interpreter["Company"][comp] /. Entity[_, x_] :> x ticks = Ticker /@ {"Apple", "Google"} {"NASDAQ:AAPL", "NASDAQ:GOOGL"} ...
2
votes
1answer
177 views

A possible bug with regard to DateObjects in Version 10?

Bug introduced in 10.0 and fixed in 10.1 Bug related to the Suggestion Bar Bug While getting used to the new data type Date Object in Version 10 I noted that ...
5
votes
1answer
82 views

“ComputedDate”'s interpretation of “next”

Today Interpreter["ComputedDate"] /@ {"next Monday", "next Tuesday", "next Wednesday"} What explains this behavior? Can ...
4
votes
0answers
82 views

TimelinePlot with Interval in Associations

Bug introduced in 10.2 This is related to a previous question I asked about TimelinePlot and multiple associations (Behavior of TimelinePlot with multiple ...
8
votes
2answers
179 views

SetOptions for CoordinatesToolOptions for DateListPlot?

Bug introduced in 10.0 and persisting through 10.2.0 or later DateListPlot does not respect my Options setting for ...
10
votes
3answers
740 views

MovingAverage[] and Fit[] with data containing DateLists

I have data which has the following appearance: data = {{DateList, Real}, ..., {DateList, Real}} It's easy to visualize the data by using ...
1
vote
1answer
157 views

How to make a cumulative time plot?

So I'm working with this data set where there is just one input(a date and time) per line in a .csv file. I've let Mathematica understand the input using "DateStringFormat". The time looks like ...
0
votes
0answers
75 views

How to extract the time t of an interpolated function created by NDSolve? [duplicate]

I'm working with the function NDSolve. I give it the time of integration, the time I want it to evaluate my differential equations. Sometimes, it crashes before the end of its attribuated time ; For ...
4
votes
1answer
120 views

How to restart a Clock

The code below is to demonstrate color afterimages. The user chooses a color, fixates the changing number at the center until it reach 30 (seconds), then manually switches to white to observer the ...
4
votes
2answers
154 views

Is it safe to change the value of $TimeZone?

I'd like to configure some of my notebooks to assume all calculations using dates, times and locations (notably AstronomicalData , but others too) take place at the ...