我在非洲开发银行有两个领域,说明开办和结束时间,另一个领域可能或可能没有确定日期。
在选举后,我需要知道,我是否在时间范围内,如果我是在时间范围内,到今天才确定日期。
在购买力平价中这样做的最佳方式是什么?
感谢!
我在非洲开发银行有两个领域,说明开办和结束时间,另一个领域可能或可能没有确定日期。
在选举后,我需要知道,我是否在时间范围内,如果我是在时间范围内,到今天才确定日期。
在购买力平价中这样做的最佳方式是什么?
感谢!
我的原始回答并不是在我所了解的一切情况下回答你的问题。 希望这样做。
$query = "SELECT IF(".date( H-m-s )." BETWEEN start-time AND end-time,
inRange , notInRange ) WHERE `date` == CURRENT_DATE OR `date` IS NULL";
If date( H-m-s ) from PHP is in the range it will return the string "inRange" otherwise it will return the string "notInRange" and will match it on the records in your db where date is either NULL, or the current date.
你们也可以这样作:
SELECT IF(TIME(CURRENT_TIMESTAMP) BETWEEN start-time AND end-time, inRange ,
notInRange ) WHERE myDate == CURRENT_DATE OR myDate IS NULL;
在选任后,我需要知道我是否在时间范围内或超过时间范围。
SELECT (NOW() BETWEEN date_min AND date_max) is_happening_now
FROM your_table
如果NOW(NOW)在从日期到最高日期之间,则现在含有一种含有真实情况的细菌。 显然,这将建立一个你可能不需要的单独一栏,如果有必要,你可以将这一条件列入《惠予公约》条款。
如果确定日期,我只是在今天的时候。
我确实不理解这一部分,但你可以从DATETMIS中抽出这一日期,并履行DATE职能(例如: Current_date = DATE(一些_date)
。
I was try to measure what is faster and what should be the best way to compare two dates, from datetime record in MySql db. There are several approaches how to grab a date from date time, but I was ...
So I implemented a UIDatepicker in one of my applications for scheduling and autodialing teleconferences... everything is pretty much ready to go except, while testing I noticed that when the date ...
I have MMDDYY dates, i.e. today is 111609 How do I convert this to 11/16/2009, in Python?
I am wondering if there is a way to specify the date format in the forms created using CakePHP s $form->inputs(); Please note that this is not the individual $form->input() but instead $form->inputs() ...
Ok, this is really simple, maybe I m a getting a bit burnt out, but seems like it should work, Query XML feed, put out date string, format, display in a cell. The issue is I m a getting a NULL ...
I am exporting a date value from sqlite and placing it into an email. The date appears like this 279498721.322872 I am using Objective C in an Iphone App. Does anyone know how to make this export ...
I m trying to parse timestamp strings like "Sat, 11/01/09 8:00PM EST" in Python, but I m having trouble finding a solution that will handle the abbreviated timezone. I m using dateutil s parse() ...
I love the new DATE datatype in SQL Server 2008, but when I compare a DATE field to a DATETIME field on a linked server (SQL 2005, in this case), like this: DECLARE @MyDate DATE SET @MyDate = CONVERT(...