Questions tagged [timefield]

47 questions
1
vote
1 answer

Determine hours using date and time fields

I have separate date and time fields for an event and the data entry of that event. How do I determine the hours between the event and the data entry? The time field is a string in standard time which I converted to a military time time field using…
isoman4not5
  • 131
  • 14
1
vote
1 answer

Convert a time string to military time number

I have two time fields that have time strings in this format: 07:12 PM. How do I convert them to military time and as a time field so that I use them in formulas?
isoman4not5
  • 131
  • 14
1
vote
1 answer

Setting a time as default value in gxt?

I realized I have this with all combo box. I want it to have a default value so I tried... TimeField field = new TimeField(); field.setFormat(DateTimeFormat.getFormat("HH:mm")); field.setRawValue("10:00"); But when I open the section, the value…
lakshmi
  • 4,539
  • 17
  • 47
  • 55
1
vote
1 answer

Need to show hours as 07:00, 15:00, 23:00 (8 hrs increment) in EXTJs timefield

I need to show hours as 07:00, 15:00, 23:00 (8 hrs increment) in EXTJs timefield, but when I used the following code, it is not giving the desired output, can some one help me, if I am missing something. Ext.create('Ext.form.Panel', { title:…
Ashok
  • 1,251
  • 11
  • 19
1
vote
1 answer

Symfony2 TimeType Field separate hour's and minute's input fields

I want to get two input fields for hours and minutes with the TimeType field. I also want to set for the input field of time and hour an unique label, placeholder and / or input values. I also want to render each inpult field individually in TWIG,…
Marvin
  • 157
  • 14
1
vote
2 answers

Magento admin form time field

I am trying to add a time field to an admin form but it does not work: $fieldset->addField('sched_time', 'time', array( 'label' => Mage::helper('servicemanager')->__('Scheduled Time'), 'style' => 'width:45px', 'class' …
Nicholas.V
  • 1,926
  • 2
  • 15
  • 30
0
votes
2 answers

how to have a TimeField with auto increment of 5 minutes (django)

I have a model in django that consists of these fields: device = models.CharField(max_length=150, null=True) time_received = models.TimeField(auto_now_add=True, null=True) display_time = [ i want it to have same hour as time_received , minute to be…
0
votes
0 answers

Not able keep time permanent once i send it into the fields in selenium python

ok so im automating a a couple of fields in the image added. i have everything done but the start time and end time revert back to zero after i put them in. here is my current code for automating this ` def add_meeting_track(self): …
john doe
  • 37
  • 3
0
votes
0 answers

Placeholder for timeField in yii forms

I want to add a placeholder text to timeField attribute timeField($travel_book, 'flight_duration', array('class' => "form-control db-input", 'title' => "")); ?>
kavitha
  • 11
  • 1
0
votes
0 answers

Django `TimeField` and timezone

Django documents says "Timezone withoud date no make sence" but I think it does. For example: DB store time of day start. User from Chicago saved start time as 05:00 am. System need to generate report for every day and use this start time with date…
ray_otto
  • 33
  • 8
0
votes
1 answer

Django check if time is in an object's timefield range

How do I check if a time is in the range of two timefields? #appointmentApp.models Appointment #Appointments class Appointment(models.Model): ... date_selected = models.DateField(blank=True, default='2001-12-1') time_start =…
0
votes
1 answer

Why does the default ExtJs time field validation fails with other locale (Chinese)?

I use the zh_CN locale in ExtJs (ExtJs 4.0), the default locale files that ship with ExtJs (no modifications made to it). When I use a timefield in my form, I get a validation error for any value by default. Only if I use the English AM/PM, or if I…
Mathias Conradt
  • 28,420
  • 21
  • 138
  • 192
0
votes
1 answer

ExtJS - Record changes form's value's format

I have a form with datefield and timefield elements. I edited datefield format to Y-m-d and time output as follows: var form = Ext.getCmp('travelForm').getForm(); var record = form.getRecord(); var values = form.getValues(); if…
MatiasGSP
  • 75
  • 7
0
votes
0 answers

Default value Timefield Django

I have a timefield and I would like to set up a default value. I tried time = models.TimeField(default=datetime.time(10, 0)) but I have the error cannot cast type time without timezone to timestamp with time zone Any idea ?
MichaelS
  • 259
  • 2
  • 13
0
votes
0 answers

The proper way of getting the value of a TimeField in Django

Imagine that in a Educational Management System I have created a form for entering the details for a ,let say, course. After I save it to the database(in my case postgres) I want to provide the user with the opportunity to edit the previously saved…
RZAMarefat
  • 133
  • 8