I am working on a Rails application that allows users to define tasks for which they are required due_date. due_datemay or may not include time.
due_date
The way we handle it now seems like a hack. due_datethe default is 12:00 AM, in which case we do not show the time. As far as I know, the object DateTimedoes not allow empty values of time.
DateTime
Should I split this information into two columns in the database? How do you guys handle this?
, :
Ruby DateTime , , . 0, , . ( - 0 .)
, "1 2010 " DateTime 1 2010 . 00:00.
. - , , DateTime "show_time". - DateTime , DateTime .
Ruby, , 1. , , , - , . "( )".
PS
! , , .
. , , ? , .. , , . , , .
, , .
Source: https://habr.com/ru/post/1752540/More articles:JavaScript - Sorting SELECT parameters - javascriptNeed guidance on the correct flow of my PHP MVC Framework - phpRuby on Rails: remove element from array by id - ruby-on-railsКаков правильный способ выполнения альфа-смешивания? (С) - cHow to add an object to the end of NSMutableArray - iphoneMSI merge module from MSI full package - windows-installerhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1752542/prove-that-the-segments-formed-by-two-internal-segments-to-a-circle-crossing-each-other-when-multiplied-are-equal&usg=ALkJrhgRMPgFxpoOr9oFd4bzO4SXW6C91wCreating tree hierarchy in JSON with LINQ - jsonUsing MbUnit with Delphi Prism - .netGetting automatic completion using Eclipse + PyDev for function arguments - pythonAll Articles