Questions tagged [date-and-time]

Questions about Mathematica's date and time functions.

Filter by
Sorted by
Tagged with
0
votes
2answers
76 views

How to visualize a series of TimeObject? [closed]

data = Get["http://home.ustc.edu.cn/~xiaozh/SE/data.wl"]; And data can access data["a"],<...
4
votes
1answer
179 views

How to download Entity data for an interval of dates

I am interested in downloading "TropicalStorm" data for hurricanes with the highest "WindSpeed" occurring in the years 1990 ...
10
votes
3answers
403 views

How to work with Date calculations?

I have never worked using the DateObject function But I suspect there must be a (easy) way of doing it. I want to find out, when in the future, from which point, ...
1
vote
1answer
74 views

Is there a way to improve the performance of this code in order to reduce the time needed?

I'm working with binary protein interactions, and with the data that I have I use Mathematica to generate a Graph with all the interactions. Since most of the organisms have thousands of proteins and ...
1
vote
0answers
36 views

Inconsistent display of DateObjects in Dataset [closed]

This question is similar issue to here. <|"a" -> DateObject[{2014, 1, 14}], "b" -> {DateObject[{2015, 3, 23}], DateObject[{2015, 3, 30}]}|> // Dataset The formatting is the same if the ...
0
votes
0answers
34 views

Unexpected results from TimeSeries + Accumulate [duplicate]

I want to have calculate a cummulative series from the existing one. In a simplified example, let's say there's a series: ...
6
votes
2answers
109 views

Use SemanticImport on column with UnixTime in miliseconds

When I use SemanticImport on a csv file with the following data I get a DateObject with the year value in the 40 thousands, e.g. ...
3
votes
2answers
147 views

Replacing procedural code with functional code

I have the following code that determines when the second business day of each month is (given a start and end date). I have a few If statements I would like to replace with functional programming. <...
6
votes
1answer
152 views

TimeZone Anomaly

I ran into the following situation when I was trying to determine the time of sunrise (using the built-in Sunrise function) for a variable location on a variable ...
2
votes
1answer
120 views

Optimal way to import specifically formatted time values

This is admittedly boring but one needs such things occasionally, and I could not find it documented. I have specific time format like "20160723 170543518" (YearMonthDay HourMinuteSecondMillisecond, ...
6
votes
0answers
127 views

Difference between Timing, AbsoluteTiming, and Elapsed?

In the picture below, Difference between Timing, AbsoluteTiming, Time and ...
7
votes
1answer
139 views

DateDifference problem in v11

Bug introduced in v11, fixed in v11.1 I have recently upgraded to Mathematica 11. Here is a simplified version of code that worked in v10.2: ...
2
votes
1answer
150 views

Date format change from MM/DD to DD/MM

I have the following format of data MM/DD/YYYY, listA={"5/1/2016", "5/2/2016", "5/3/2016", "5/4/2016", "5/5/2016", "5/6/2016", "5/7/2016", "5/8/2016", "5/9/2016", "5/10/2016", "5/11/2016", "5/12/...
7
votes
2answers
242 views

Timeline overview of implemented Mathematica functions

With WolframLanguageData[{"ListLogPlot", "Plot", "ColorNegate"}, "Timeline"] one gets information at what time and version a certain function was implemented: ...
0
votes
0answers
252 views

Plot boolean values in DateListPlot

I have a TimeSeries object in which the data is boolean (True,False) values. When I plot it using DateListPlot the result is blank. ...
5
votes
2answers
205 views

Timing evaluation times dynamically

I am wanting to make a function that times how long an evaluation takes to run dynamically, with the effect similar to if I were to use an online stopwatch and started it when I hit run. If the ...
0
votes
0answers
43 views

Make DateString[do,“ISODate”] also Work on Version 10

In Version 11, new types of output elements were introduced: "ISODate" and "ISOTimeDate". In order to aalso use them on Version 10, I put these lines to ...
1
vote
0answers
176 views

NASA CDF Epoch format

This is a rather obscure question, but perhaps someone has the answer. I am trying to read/interpret a number stored in NASA's CDF Epoch format. That's the number of milliseconds past Jan 1, year zero....
7
votes
2answers
203 views

DateListLogPlot fails on more than one data series in version 11.0.1

Fixed in 11.2 DateListLogPlot is not able to plot more than one data series in 11.0.1. However it can plot in versions 11.0.0 and 10.4.1. With ...
11
votes
1answer
409 views

Calculate moonrise

Mathematica has Sunrise[], but no Moonrise[]. But it has MoonPosition[], so I thought it ...
1
vote
1answer
117 views

How to LinearModelFit data like {{year,month,day,hour,minute,second,variable}}?

As the title says...I have my data in the form : {{year,month,day,hour,minute,second,variable},{year,month,day,hour2,minute2,second2,variable}, ...} ...
8
votes
1answer
83 views

Acessing style information of TimeObject and DateObject DisplayForm

The two functions TimeObject and DateObject (both introduced in version 10) feature neat ...
10
votes
1answer
390 views

Plotting how sunrise times change over the year

I created a somewhat lengthy Python code to show how the time of sunrise varies over a year, resulting in the following figure (daylight savings were disregarded): The dataset can be found here. The ...
3
votes
1answer
121 views

Iterate over days of year to make a list/graph

How do I make a graph of a function which takes a date as input, over a full year? [Edit] To clarify, I have an existing function, say f, which takes a date as ...
1
vote
0answers
30 views

How to use the CalendarChange function in loop statement

I tried to use the following loops, but without sucess: For[i = 1, i < 7, i++, data = {632, 1, i}; CalendarChange[data, Gregorian, Islamic] ] and ...
3
votes
0answers
97 views

Holidays output

I wanted to print out the holidays in Germany in 2016: ...
9
votes
1answer
191 views

HistogramList for DateHistogram?

HistogramList and Histogram are closely related: ...
0
votes
0answers
28 views

Mapping DateDifference with specific first argument across list [duplicate]

I have a nested list that contains date strings that I've split on the forward slash in the form of year/month/day/hour/minute, like so: ...
-1
votes
1answer
80 views

How can I plot the graph based on time from TimeUsed?

Good day everyone, Can anyone help me how to plot the result using time from computer. Here, I used timeUSed to generate the time; ...
6
votes
2answers
346 views

Using Dataset with TimeObjects in EventSeries

I'm new to Mathematica, and while this is potentially quite easy, I'm having difficulty using TimeObjects in the EventSeries ...
0
votes
2answers
96 views

TimeSeriesAggregate—reformatting the date

Compute Aggregated Statistics for a Time Series The article linked to above provides a sample of aggregating time series data. ...
0
votes
3answers
505 views

Read timeseries data from CSV

I am new to Mathematica and have v10. I would like to you use the new TimeSeriesAggregate[tsdata, "Quarter", Total] feature to return aggregated descriptive stats. I import a number of columns of ...
5
votes
2answers
294 views

How to set proper time zone for weather data

I am running a query to pull historical temperature readings from Los Angeles using the following query: ...
4
votes
2answers
160 views

Set hour of DateObject

Say I have a date object date = DateObject[{2016, 7, 17, 0, 0}], how do I later change the hour of that date object, without needing to know the value it currently ...
4
votes
0answers
184 views

Predicting Manhattanhenge

At the time of writing, Manhattanhenge is tonight in New York City (ref 1), "an event during which the setting sun is aligned with the east–west streets of the main street grid of Manhattan, New York ...
1
vote
1answer
906 views

How to convert output time in terms of seconds to minute with UnitConvert[]? [duplicate]

I have this code: AbsoluteTiming[g[x_, t_] := Sin[x]^90*(1 + t^2); Integrate[g[x, \[Tau]], {\[Tau], 0, t}]] with this output: I want to have convert unit to ...
7
votes
1answer
145 views

How to specify RegularlySampledQ TimeSeries with EndOfMonth date unit MinimumTimeIncrement?

"EndOfMonth" is date unit that can be used with date functions. When specifying a TimeSeries object with date increments you ...
1
vote
1answer
90 views

Select Time Phase of Dataset with SQLDateTime Objects

I have a Dataset like this: ...
6
votes
1answer
107 views

How to prevent TimeSeries adding TimeObject parameter and TimeZone option to DateObjects?

TimeSeries adds a TimeObject parameter and a TimeZone option to ...
5
votes
1answer
145 views

DateObject with DateFormat displays incorrectly in Dataset

Bug in 10.4.1 still in 11.0 DateObjects with DateFormat option appear to have the first date part truncated when displayed in a ...
6
votes
2answers
128 views

Speed up AbsoluteTime with string input

I have millions of strings representing dates in the form: "05-Mar-2004 10:15:00". I would like to convert these to absolute times. For example: ...
10
votes
5answers
556 views

Getting AbsoluteTiming to display in hours, minutes, and seconds

I'm doing some extended length calculations and was wondering how I could get AbsoluteTiming to display in hours, minutes, and seconds. I googled and found nothing, ...
4
votes
4answers
531 views

How to convert Dates with format 2016/03/1 to become {2016,3,1}

I have a problem to convert tide data with the form as follows. 2016/03/23,08:00,0.89,* 2016/03/23,09:00,1.41,* 2016/03/23,10:00,1.67,* 2016/03/23,11:00,1.44,* 2016/03/23,12:00,0.82,* 2016/03/23,13:...
3
votes
1answer
81 views

overlap of data

I have two individual Date lists as Date Objects: List 1 = {1 Jan 1991 9 :00 , 3 Jan 1991 11:00 ..etc } List 2 ={ 7 Jan 1991 14:00, 9 Jan 1991 15:00 ..etc} For ...
4
votes
2answers
159 views

How to override DisplayForm of (mixed) time Quantity

What's the best approach to overriding DisplayForm for specific types of Quantity eg time especially w/ mixed units? Current is ...
3
votes
1answer
144 views

How to plot the hour of the sunsets

i have this code: ...
-1
votes
2answers
115 views

Matching timestamped data

I bet this question is a gimme for most of you guys, but I'm having a bit o' trouble figuring it out. Thanks ahead of time for your input and help. Soooo, I have two datasets where column 1 is a ...
9
votes
2answers
303 views

How to skip weekends in DateListPlot?

How to skip weekends in DateListPlot, ie, drawing 20 something data points for a month and not leaving 2 days gap between weeks? Currently DateListPlot occupied the actual number of days for a month ...
0
votes
1answer
182 views

Combining first 5 columns from CSV file into AbsoluteTime date

Thanks in advance for all your help. I need to import data from a CSV file that looks like : (easier to read in excel) I would like to convert the data into timestamps by creating a Table with 2 ...
3
votes
1answer
218 views

How to get DateListPlot Epilog to display shapes

The following should produced a plot with an orange outlined disc labelled "A" on the dotted line. Epilog produces the dotted line and the text label but is unable ...