Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4572022
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:35:14+00:00 2026-05-21T19:35:14+00:00

I am using curl to interact with the REST API of JetBrains’ YouTrack issue

  • 0

I am using curl to interact with the REST API of JetBrains’ YouTrack issue tracker from the Windows command line. It is a very simple process that uses no other utility than curl (built as a single windows executable). I’d like to keep the simplicity, but I have run into an issue. One of the API’s wants me to pass a Unix timestamp, but there is no Windows utility to generate one. I suppose it would be simple enough to write a utility myself, but I’d prefer not to reinvent the wheel.

The API I am calling is here:

http://confluence.jetbrains.net/display/YTD3/PUT+Version

And I am looking to populate the “releaseDate” field.

Is there a utility to generate the Unix timestamp on windows that is self contained, ie I don’t need to install cygwin or something huge like that.

EDIT: For the record here is what I ended up doing (its part of a *.bat file):

type nul >pcmd.ps1
echo $timestamp=Get-Date -UFormat '%%s' >>pcmd.ps1
echo $timestamp=[Math]::Truncate($timestamp) >> pcmd.ps1
echo curl "http://myserver/rest/admin?releaseDate=$timestamp&isReleased=true" -v -b yt --upload-file empty >>pcmd.ps1

type pcmd.ps1

powershell - <pcmd.ps1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:35:14+00:00Added an answer on May 21, 2026 at 7:35 pm

    with native MS powershell this may work:

    Get-Date -UFormat "%s" 
    

    http://technet.microsoft.com/en-us/library/dd347647.aspx

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using Curl from the command line you can use the following command to
I am using CURL for get response from an web api. I am getting
I'm using cURL to get the XML file for my Twitter friend's timeline. (API
I'm using curl to login tumblr for some operations. I'm not using tumblr api
I'm using cURL to download files to a local folder. The command I'm using
I'm using cURL to return data from external sites. How can I return the
I am using curl from a BASH shell. I would like to create a
I'm using cURL in my PHP app to connect to a RESTful API. However,
I'm using curl to fetch data from many website. Sometimes they send back gzip.
Having issues using cURL on windows vista. The library is there and showing with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.