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
-1
votes
2 answers

Delete period preceded by only one character

How can I delete a period preceded by only one character? I'm looking for a one line sed or awk code. The target line is: (the target pattern I want to delete is in **Bold stackoverflow code ***j.*** **) xxx-xxx, **j.** c., univ los xxx, res grp…
Another.Chemist
  • 2,386
  • 3
  • 29
  • 43
-2
votes
3 answers

SQL Server - Breakdown date period

I want to create a query that breakdowns a date period into 10 days sub-periods So a period of 2022-04-15 to 2022-05-01 should be broken into 2022-04-15 2022-04-24 2022-04-25 2022-05-01 The period could be one day (2022-04-15 to 2022-04-15) or…
PanosPlat
  • 940
  • 1
  • 11
  • 29
-2
votes
1 answer

Simplify sql query(date to period)

got this table: initial table Need to get table like this: Target table what I used: Select ID_CLIENT, BALANCE, HIST_DT as Start_dt, isnull(lead(hist_dt) over (partition by id_client order by hist_dt asc), '2999.12.31') as End_dt from ( select…
-2
votes
2 answers

Disable Previous dates base on selected date at other datepicker dialog

I would like to explain the problem in short, Now I have two android datapicker dialog, Check-In and Check-out. Check-in datepicker I have already set the mindate as today, which means user can only choose from today. But how to set the check-out…
-2
votes
3 answers

Time periods compare

I have a collection of objects in javascript, they represent to periods of time. I need iterate and know each few overlap. There must be some framework to compare periods in JavaScript but I have not given with any and I am finding it very…
-2
votes
2 answers

Algorithm to calculate effective exposure period of sensor

LED blinks at frequency f. Sensor is closed during waitingPeriod and opened during exposurePeriod to receive light from LED. Assume that the LED is turned On from the start. How to calculate the effective exposure period of sensor, that is the…
opmfan
  • 191
  • 1
  • 3
  • 14
-2
votes
2 answers

Java regex ignore '.' symbol

I'm trying to split a string at every '.' (period), but periods are a symbol used by java regexes. Example code, String outstr = "Apis dubli hre. Agro duli demmos,".split("."); I can't escape the period character, so how else do I get Java to…
Maurdekye
  • 3,597
  • 5
  • 26
  • 43
-2
votes
4 answers

Find word containing punctuation, but not in the end or word

I'm breaking my head about following problem. I need to match dot in the word under certain condition. Example: D.A.R.Y.L. or se.ven or go/the will be untreated. Dr. Odissey. or look, or look: will be treated. I was using…
Nadja
  • 19
  • 4
-3
votes
1 answer

PHP library to fill an array of dates for a given period?

I have a lot of values like this: +---------------------+-------+ | Date | value | +---------------------+-------+ | 2015-05-22 13:10:59 | 23,99 | | 2015-05-22 13:20:19 | 23,8 | | 2015-05-26 17:30:00 | 8 | | 2015-05-26 19:00:00 |…
Gab
  • 9
  • 3
-4
votes
1 answer

I am getting wrong time between two dates in Joda-Time

I am getting incorrect results whatever I do. Could anyone give me some advise please :). Here is the code of my program the is responsible for getting the time between two dates. I am getting a result but the problem is that it is incorrect and I…
AyhamSYR
  • 13
  • 4
-5
votes
1 answer

What does a period do between a variable and an array?

I'm learning C and trying to understand what the period "." is doing with the variables x and a; what is this operation called, and what does it do? Here is the full code: #include #include // Create a structure called…
-5
votes
2 answers

PHP time period "7 days, 18:50:19"

What is the best way to convert this time period to seconds in php? "7 days, 18:50:19" ~> "67000"
snn1024a
  • 1
  • 2
1 2 3
33
34