Questions tagged [period]

A period of time is an interval, a span of time. You can also use it for questions related to the actual punctuation mark.

508 questions
0
votes
1 answer

R: Assigning period identifiers to individual events

I came across the following problem: I would like to assign a period identifier to individual events which fall between the start and end date of the period in question. As the periods occur in different locations, I need to assign the period…
Simon P.
  • 105
  • 7
0
votes
1 answer

Custom time periods in DAX

I have a huge table where entries have product categories, create date, modify date, etc. Marketing in our company is launching campaigns in several "Promotional Periods" which are gathered in table with: Product category, Promotion name, start…
Uzzy
  • 431
  • 1
  • 8
  • 16
0
votes
2 answers

How to handle LocalDate Period.between results?

I use LocalDate (ThreeTenABP) to calculate the period between to given dates. When I use 01/01/2018 as the first and 12/31/2018 as the second date, Period.between gives the following result: 00 years 11 months 30 days IMHO this is wrong, since a…
DMP
  • 23
  • 4
0
votes
1 answer

Periodic-Rotating-File-Handler in yaml with Wildfly-Swarm not working

I want to configura a periodic-rotating-file-handler to log into a debugfile using wildfly-swarm. I want to do tgis using the project-defaults.yml Currently I have the following: swarm: logging: logging-profiles: root-logger: …
Urr4
  • 611
  • 9
  • 26
0
votes
2 answers

How to create dynamically records for each month between range of dates

I have the following dates in a table cp: start_date: 01/01/2017, end_date: 01/08/2017; start_date: 01/04/2017, end_date: 01/07/2017 I would like to create a record dynamically for each month between these periods. It tried with the following…
Moh Za
  • 77
  • 1
  • 8
0
votes
0 answers

Transform periodogram to dataframe in R

Simple example with R on mydata: l=structure(list(dat = structure(1:9, .Label = c("01.01.2016", "02.01.2016", "03.01.2016", "04.01.2016", "05.01.2016", "06.01.2016", "07.01.2016", "08.01.2016", "09.01.2016"), class = "factor"), lpt = c(94L,…
psysky
  • 3,037
  • 5
  • 28
  • 64
0
votes
2 answers

How to use Period.parse()?

Period.parse() requires API level 26. Is there any workaround to use it with minimum API level 17. I am using Period snoozeTime = Period.parse(rs.getString(rs.getColumnIndex("snoozeTime")));
Shunan
  • 3,165
  • 6
  • 28
  • 48
0
votes
2 answers

python3 iterating through dates

I have a list of date objects X ("%Y,%m,%d") and a date Y and want to have a list Z with all dates in it that are +-10days away from date Y IGNORING the year. Ex.: timeDelta = 10days X = [2017-10-10, 2014-09-31, 1999-05-10, 1992-10-18] Y =…
Christian
  • 39
  • 6
0
votes
2 answers

Having trouble in a PL/SQL program

I have a table(pay_period) as following pay_period period_id list_id start_date end_date price 1 100 2017-01-01 2017-08-31 100 2 100 2017-09-01 2017-12-31 110 3 101 2017-01-01 …
Abishek
  • 13
  • 3
0
votes
2 answers

Listing number sequence for financial periods

In SQL 2016, I need to create a list using financial periods but only have the from/to available - it's formatted similar to dates but are 0mmyyyy, so the first 3 numbers are the month/period and the last 4 digits the year. e.g. period_from is…
0
votes
2 answers

SQL statement to get the most frequent hours and/or period for a user

I'm new to SQL Datetime. Considering I have records in MySQL with Datetime data (as seen below), what is the best way to get the most frequent occurring HOUR or range/period for these records for a particular user (i.e. john)? ID | Datetime …
sprion
  • 3
  • 3
0
votes
1 answer

ALSA takes 1024 buffers before interrupt

I'm trying to make my ALSA interface work with as low latency as possible. The ALSA documentation about all the frames / periods / buffers is very confusing, so I'm asking here. The below code forces the ALSA to actually read 1024 times the buffer…
Jussi Hietanen
  • 181
  • 1
  • 1
  • 12
0
votes
3 answers

Periods class implementation in java 8

If I code like this: Period wrong = Period.ofYears(1).ofWeeks(1); It gives output of P7D. By the implementation of Period class we know that all of____() methods are static. But if you to do same chaining with DateTime class: LocalDate date =…
Hasnain Ali Bohra
  • 2,130
  • 2
  • 11
  • 25
0
votes
1 answer

Calculate age in years and months by adding period class objects together with lubridate in R

My data has a variable for baseline age, and a follow up variable with number of months since baseline observation. Both are numeric vectors with whole numbers only. I want to calculate age at follow up. When I parse these variables to period…
davidhen
  • 579
  • 6
  • 10
0
votes
2 answers

Displaying current and previous pay period in SQL (based on an imported table)

I need to display the current AND last pay periods based on an imported table for biweekly pay dates. The table looks something like this: 2017-03-23 00:00:00 2017-04-06 00:00:00 2017-04-07 00:00:00 2017-04-20 00:00:00 2017-04-21 00:00:00 2017-05-06…
codemonkey
  • 13
  • 3