How to pass specific time through postmanHow do I format a Microsoft JSON date?How can I pretty-print JSON in a shell script?How do I test for an empty JavaScript object?How can I pretty-print JSON using JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?How do I get ASP.NET Web API to return JSON instead of XML using Chrome?How do I write JSON data to a file?Laravel get the sent data to the requestAjax request keeps failing with bad request when Postman worksPostman Pre-request script

Uncovering the Accelerated Dragon opening

How do EVA suits manage water excretion?

What jurisdiction do Scottish courts have over the Westminster parliament?

Is there a reliable way to hide/convey a message in vocal expressions (speech, song,...)

When was the earliest opportunity the Voyager crew had to return to the Alpha quadrant?

Do they still use tiger roars in the 2019 "Lion King" movie?

How are aircraft depainted?

How to say "quirky" in German without sounding derogatory?

Are Democrats more likely to believe Astrology is a science?

Fight a biblical flood apart from building barriers

Telling my mother that I have anorexia without panicking her

Confirm the ending of a string

What's the biggest organic molecule that could have a smell?

Glue or not to glue boots

Relocation error, error code (127) after last updates

Can I disable a battery powered device by reversing half of its batteries?

A medieval fantasy adventurer lights a torch in a 100% pure oxygen room. What happens?

Eccentric keepers

What is this unknown executable on my boot volume? Is it Malicious?

Why isn't `typename` required for a base class that is a nested type?

Why is the T-1000 humanoid?

Type leftwards arrow on macOS

Do all humans have an identical nucleotide sequence for certain proteins, e.g haemoglobin?

The Planck constant for mathematicians



How to pass specific time through postman


How do I format a Microsoft JSON date?How can I pretty-print JSON in a shell script?How do I test for an empty JavaScript object?How can I pretty-print JSON using JavaScript?How do I POST JSON data with Curl from a terminal/commandline to Test Spring REST?How do I get ASP.NET Web API to return JSON instead of XML using Chrome?How do I write JSON data to a file?Laravel get the sent data to the requestAjax request keeps failing with bad request when Postman worksPostman Pre-request script






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time



I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not



$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),


I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it










share|improve this question
























  • What is the on line 51 in your PostController?

    – thefallen
    Mar 28 at 9:59











  • @thefallen same that $cooked_time request

    – Pushpendra Pal
    Mar 28 at 10:03












  • Thats probably some value that date() can't convert.

    – thefallen
    Mar 28 at 10:06











  • how do i do it then if i want to pass cook time as 12:30:00

    – Pushpendra Pal
    Mar 28 at 10:16












  • You can easily use Carbon to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time.

    – thefallen
    Mar 28 at 10:22

















0















I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time



I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not



$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),


I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it










share|improve this question
























  • What is the on line 51 in your PostController?

    – thefallen
    Mar 28 at 9:59











  • @thefallen same that $cooked_time request

    – Pushpendra Pal
    Mar 28 at 10:03












  • Thats probably some value that date() can't convert.

    – thefallen
    Mar 28 at 10:06











  • how do i do it then if i want to pass cook time as 12:30:00

    – Pushpendra Pal
    Mar 28 at 10:16












  • You can easily use Carbon to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time.

    – thefallen
    Mar 28 at 10:22













0












0








0








I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time



I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not



$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),


I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it










share|improve this question














I get the following error I am trying to hit an API where that takes the title from the user and its cook time and apply to the decomposed time of 12 hours but the problem is I am using postman and have no clue to send date or time through postman for cook time



I tried sending request of time also used dd to check whether the value that I am inserting is going in the proper format or not



$post = Auth::user()->posts()->create([
'user_id' => Auth::id(),
'title' => $request->title,
'cooked_time' => $request->cooked_time,
$cooked_time = date('h:i:s',$request->cooked_time),
dd($cooked_time),
'dispose_time' => date('h:i:s',strtotime("+12 hours", strtotime($cooked_time))),


I want to pass cooked time of a food that a typical user would have passed and add 12 hours to it







json laravel-5 laravel-5.2 postman lumen






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 28 at 9:54









Pushpendra PalPushpendra Pal

237 bronze badges




237 bronze badges















  • What is the on line 51 in your PostController?

    – thefallen
    Mar 28 at 9:59











  • @thefallen same that $cooked_time request

    – Pushpendra Pal
    Mar 28 at 10:03












  • Thats probably some value that date() can't convert.

    – thefallen
    Mar 28 at 10:06











  • how do i do it then if i want to pass cook time as 12:30:00

    – Pushpendra Pal
    Mar 28 at 10:16












  • You can easily use Carbon to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time.

    – thefallen
    Mar 28 at 10:22

















  • What is the on line 51 in your PostController?

    – thefallen
    Mar 28 at 9:59











  • @thefallen same that $cooked_time request

    – Pushpendra Pal
    Mar 28 at 10:03












  • Thats probably some value that date() can't convert.

    – thefallen
    Mar 28 at 10:06











  • how do i do it then if i want to pass cook time as 12:30:00

    – Pushpendra Pal
    Mar 28 at 10:16












  • You can easily use Carbon to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time.

    – thefallen
    Mar 28 at 10:22
















What is the on line 51 in your PostController?

– thefallen
Mar 28 at 9:59





What is the on line 51 in your PostController?

– thefallen
Mar 28 at 9:59













@thefallen same that $cooked_time request

– Pushpendra Pal
Mar 28 at 10:03






@thefallen same that $cooked_time request

– Pushpendra Pal
Mar 28 at 10:03














Thats probably some value that date() can't convert.

– thefallen
Mar 28 at 10:06





Thats probably some value that date() can't convert.

– thefallen
Mar 28 at 10:06













how do i do it then if i want to pass cook time as 12:30:00

– Pushpendra Pal
Mar 28 at 10:16






how do i do it then if i want to pass cook time as 12:30:00

– Pushpendra Pal
Mar 28 at 10:16














You can easily use Carbon to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time.

– thefallen
Mar 28 at 10:22





You can easily use Carbon to convert this carbon.nesbot.com/docs, I can't give you an example, because I'm not sure what value is $request->cooked_time.

– thefallen
Mar 28 at 10:22












0






active

oldest

votes










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394636%2fhow-to-pass-specific-time-through-postman%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes




Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.







Is this question similar to what you get asked at work? Learn more about asking and sharing private information with your coworkers using Stack Overflow for Teams.




















draft saved

draft discarded















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55394636%2fhow-to-pass-specific-time-through-postman%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현