Questions related to obtaining the current time, calculating on times, formatting and parsing times, etc.

learn more… | top users | synonyms

0
votes
1answer
27 views

DateTime iso format in api

I have created an api that filter out unixtime format. Currently, we can filter using /api/blogs?filter[created][value]=1426766400&filter[created][operator]=">="&api_key=DEMO_KEY That ...
0
votes
1answer
127 views

How to use Traditional (National/Native) Date/Calender in Drupal?

How can use Traditional Calender in drupal? I already used "format_date" function in theme files, but this function not locale-aware which means that it Always outputs English language data, such as ...
1
vote
0answers
8 views

How to use cck time field in rules?

I'm using a cck_time field (field_check_in) in my content type. I want create a notify when this field is changed but when I try to set Data comparition in Rules Conditions I not find the entity of ...
0
votes
1answer
61 views

Why would custom module code fail when called from drush but work fine when invoked from cron button in admin/config/system/cron?

Background: I have developed a custom module to process a CSV file of user data imported from an external system. The module updates the standard Drupal user fields and also their Profile 2 fields. I ...
2
votes
3answers
86 views

Why the cron is launched when I visit the website and why is it taking so much to complete?

I have a site in development. It has Feeds module installed, with mandatoty Job Scheduler also installed. When I come back to the office to keep working on the site, it takes almost a minute for the ...
0
votes
0answers
28 views

Importing large file images in Module Feeds

I need advice on importing large quantity of content with Feeds module. I am importing large images using the module Feeds. As there are many images (a few thousands) and many are a bit large (960 ...
0
votes
1answer
20 views

Rotate Specified # of Views Results on a Time Based Schedule

I have 1000 results in a View Block. It contains a title and a teaser body. I want to be able to show 10 different results every week. How can this be done using Views? Or is there additional modules ...
-1
votes
1answer
48 views

Creating a Time Elapsed Field [closed]

Simple way to calculate the time from the nodes creation to now? A lot of the time based modules don't seem to do this. (duration, time period, date, interval field, etc.) Would Rules Scheduler be ...
2
votes
0answers
33 views

Date field repeat in same day but different time

I have an Events Content Type with Date Field. How can I repeat the date in different time? For sample, I want to show the event for "Sep 9, 10am-11am" and "Sep 9, 1pm-2pm". I see there is a repeat ...
0
votes
0answers
55 views

Hiding Time Field if Date is Expired

My time field shows after an expired date. My client wants to have the time hidden after the expired date. But still have the date show. Is this possible?
1
vote
1answer
22 views

How to query drupal timefield data

Scenario: We have a bunch of events, each event has a date field, and a separate time field that has a start and end value. I'm trying to build a module pulls in the next event that hasn't ended yet. ...
0
votes
1answer
77 views

Time field in EntityForm

How can I add a field in my entity form that allows the user to add time. When I use date, I can add time field but there is always a date field. I don't want the user to add date field, just the ...
1
vote
1answer
496 views

How do I set the exact post date timestamp as Views contextual filter?

I need to display nodes that were created within a certain period of time. Setting Date: Date (node) (content: post date) as contextual Views filter works super smooth. Now when I call ...
1
vote
1answer
63 views

Undefined index: cck_time_field_presave()

I have imported about 2 thousand nodes that include start time. I have imported and the formating and time looks the way it should. Now if i try to publish the nodes i get following error - ...
0
votes
2answers
1k views

Incorrect Time showing on frontend

I have installed the Date Module and added a date field to one of my content types, the widget I'm using is Popup Calendar. The problem I'm facing is that when I choose a date it seems to get stored ...
2
votes
2answers
1k views

How to collect Duration input, and let Google read it in “ISO 8601 duration format”?

I am building a Recipes site. As Google is demanding here: https://support.google.com/webmasters/answer/173379?hl=en I need to collect prepTime, cookTime and totalTime, in ISO 8601 duration format. I ...
1
vote
1answer
384 views

How to collect time periods, calculate the total, and present in ISO 8601 format?

I am trying to get few inputs of time periods from users (it can be by choosing in dropdown). let's say a user will be able to input in one field: "1 hour and 5 minutes" or 01:05; In second field the ...
3
votes
2answers
2k views

How to migrate date fields correctly?

I want to migrate taxonomy terms from a legacy database to my drupal 7 installation. This is working almost as desired. What I do is basicly define a mapping as described in any migration example, ...
8
votes
2answers
8k views

how can I show the node create date

I have used the format_date() in my template files to try and output the date created. I followed this tutorial http://webwash.net/tutorials/handling-date-and-time-drupal-7 I created a date format ...
1
vote
1answer
260 views

Associating a timer on flag click on individual nodes for individual users

I have a custom field "Time to Finish" in my custom content type in Drupal7. The "Time to Finish" is basically a timer of sorts. whenever the users click a flag (which is placed on nodes of that ...
1
vote
0answers
46 views

How to change Watcher module's time format so it only displays the time in one line?

I am using the Watcher module for a client's site. I am looking for a way to change the time format so instead of saying 2 days 20 hours ago, it says 2 days ago. Of course, it seems to be OK when it ...
2
votes
4answers
2k views

Drupal Time field for hour:minute:second.tenth of a second

Is there a drupal field type to represent time for athletics sports events. e.g. for 100m sprint: 10.42 seconds but for 800m 1:40.89 (1 minute, 40.89 seconds) In the format : hour:minute:second.tenth ...
8
votes
3answers
2k views

Use Timeago date format for less than 24h ago only

I would like to use the Timeago module as a date format. However, when the time ago has exceeded 24h, I would like it to show another format (e.g. 4 Feb, 2013) much like Twitter or Dribbble use. I ...
0
votes
2answers
2k views

Integer field with unix timestamp convert to readable date in views

I have an Integer field in a content type, which contains a unix timestamp. *(It is not a date module field; just a simple Integer field). In a View, I am rendering this field, but obviously it is ...
1
vote
0answers
173 views

Date Field shows different times in Frontend and Backend

I have a date field applied to a node. When I set the time in the date field to i.e. 10am and render that date to my website like so: echo date('d.m.Y H:i', ...
3
votes
2answers
1k views

FROM_UNIXTIME(o.created,'%d-%m-%Y') in where clause gives error

I am working on Drupal 6. while executing query when I add and FROM_UNIXTIME(o.created,'%d-%m-%Y') < '".arg(3)."'"; to WHERE clause it doesn't return result. i have tried by using same query in ...
2
votes
2answers
518 views

How to select every date before now in timestamp?

my database feild type is timestamp here is my code I used it but It also gave me today date I need every date before today "SELECT * FROM {mytable} WHERE date <".$now_timestamp." " please ...
2
votes
2answers
501 views

Create a time span field

The date module provides a handy widget for specifying a date. Is there something similar on Drupal 6 for specifying a length of time such as 6 months or 3 days? The time span will need to be ...