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

How to find period of a vector in MATLAB?

By the period I mean this : Say I have a vector v = [1,1,1 , 2,2,2 , 3,3,3]; period(v) ans = 3 This vector should return 3 since the value changes in every 3rd item. I can simply return the first index where the value changes, but I'm wondering if…
jeff
  • 13,055
  • 29
  • 78
  • 136
0
votes
2 answers

Periodical binary representation

How can I make a program that checks if binary representation of a given integer is periodical with period length m >= 2? For example: Binary representation of 10 is periodical 10 base 10 = 1010 base 2, periodical with period length 2 Binary…
user3478972
0
votes
2 answers

Creating new lines with full stops (period) in text files

I have a sentence in a text file that I want to display in python, but I want to display it so after every full stop(period) a new line starts. For example my paragraph is "Dr. Harrison bought bargain.co.uk for 2.5 million pounds, i.e. he paid a…
Baileyavfc
  • 47
  • 1
  • 9
0
votes
1 answer

mod_rewrite and dot at END of URI

I have been developing a shop, which uses mod_rewrite to allow us to make the URIs more readable, for instance: http://www.example.com/shop/Tools Will be rewritten to http://www.example.com/index.php?area=shop&folder=Tools My rewrite rule is as…
Pez
  • 172
  • 2
  • 15
0
votes
1 answer

How to use period in PARM parameters (JCL)?

The situation is the following. I have PARM parameters: CSQ1 - Queue manager name CARD.PAYMENTS - Request queue name CCD3050.REPLY - Reply queue name CCD3050 - Contestant user ID 400.05 - Payment amount "MY PAYMENT" …
0
votes
1 answer

Removing holiday intervals from time periods

The following query calculates working hours that have passed between a request was received and responded. Working hours are 9 to 5, Monday to Friday. select tmp.Request_Id, sum (tmp.hhmmss) as WorkHoursElapsed from (select Request_Id, …
popoten
  • 13
  • 3
0
votes
1 answer

Period in javascript variable throwing error I can't seem to squash

Here's the script I use to query google finance, it brings back some stocks with a period in the ticker, I need to replace that with a dash for finviz.com, but for some reason this is causing me a lot of grief. Every other ticker works on hover…
0
votes
1 answer

Get date from period number in Actionscript

I have a table which containt a date, a number for the number of weeks per period, and a year. the user then enters a date and I can calculate the period number from this. But I'd like to do it the other way too: Entering a period number and get the…
fbernier
  • 12,278
  • 2
  • 24
  • 30
0
votes
3 answers

SQL date, period comparison

I'm having some problem with logic of the comparison of some periods. I have a table in my database that looks like this: Id | startDate | amount of weeks | ----------------------------------- A1 | 2010-01-04 | 3 B3 | 2010-01-11 | 2 All the…
user191766
0
votes
1 answer

slicing on a perod index in pandas when slice start and end may be out of bounds

Is the following behavior expected or a bug? I have a process where I need rows from Dataframe, but in the boudary conditons the simple rule ( all rows 5 days preceeding will generate selections partially or fully outside the index. I would like…
jonblunt
  • 51
  • 2
0
votes
2 answers

PHP convert time into a Time Period

There appears to be a lot of info converting a time period into a time, but not the other way around. An example of what I need to do, is convert say 120 minutes into P0DT2H0M0S. And 13:10 into P0DT13H10M0S. And 120 minutes into PT2H0M0S. Any quick…
Rik
  • 91
  • 1
  • 10
0
votes
1 answer

Choose between two dates as a parameter on ssrs report builder 2008

I Need to show four parameters to show data between year and period, for example i would want to return transactions that occured between year 2011 period 12 and year 2012 period 4 ive got so far but not sure where to put my between and i guess i…
user2615341
  • 89
  • 1
  • 8
0
votes
1 answer

PHP get dates between two dates not working as expected

I am trying to get all dates between two dates using DatePeriod class. Its working fine when the dates inputed are of the same month, but not returning all dates when the two dates are of different months. If the dates are say 2013-06-27 and…
Avinash
  • 1,935
  • 7
  • 29
  • 55
0
votes
2 answers

Date period spread among seasons

In my MySQL database table I have the following date periods (seasons): sstart,send,sname 2013-05-01,2013-05-31,'season1' 2013-06-01,2013-06-30,'season2' I'd like to create SQL query which will for given start and end date split this period among…
sbrbot
  • 6,169
  • 6
  • 43
  • 74
0
votes
1 answer

Pandas: Convert Groupby DateObject into PeriodObject

I have the following DataFrame: df = pd.DataFrame({ 'Buyer': 'Carl Mark Carl Joe Joe Carl'.split(), 'Trades': [1,3,5,8,9,3], 'Date' : [ DT.datetime(2013,1,1,13,0), DT.datetime(2013,1,1,13,5), DT.datetime(2013,1,1,20,0), …
Andy
  • 9,483
  • 12
  • 38
  • 39